Support » Plugin: WooCommerce » Paypal capture payment problem

  • Resolved jpkapinha

    (@jpkapinha)


    Hi,

    I am using woocommerce Paypal gateway to authorize the payment and capture it later when the order passes from on-hold to complete.

    However, for some unknown reason, it looks like this action is not shooting:
    add_action( ‘woocommerce_order_status_on-hold_to_completed’, array( $this, ‘capture_payment’ ) );

    And the payment is not being captured.

    Already tested a lot and I really can’t make this action running.
    This was previously a bug in woocommerce… is it possible that it was not solved?

    Thanks,
    João Capinha

Viewing 2 replies - 1 through 2 (of 2 total)
  • Do you have the PayPal log enabled?

    I think the PayPal (standard) flow is user goes to pay, in which they are redirected to PayPal. I think at this point, the order is marked as “On-Hold” and when user returns it gets marked “Processing”

    If the product is virtual/downloadable the order would be marked “Complete” after payment. If it is a physical good then manually marking complete would need to occur.

    But that would be from “Processing” to “Complete”, so I guess to trigger what your looking for you should be setting the order to “On Hold” save, then change to “Completed” and see if it fires.

    If not, I would start disabling plugins that are hooking into the process and cancelling rest out.

    ValeDeOro

    (@valedeoro)

    Automattic Happiness Engineer

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Paypal capture payment problem’ is closed to new replies.