Capture amount when changing state
-
Hi there,
it would be perfect if you add the feature to capture the payment amount if the order state is change to “processing” or “completed”. At the momentan, we have to capture the amount manually.
The payment gateway setting is authorize not capture.
We use paypal, paypal express and stripe and all of these 3 capture the payment amount on state change except of yours.
Please have a look at the woocommerce-paypal-express-checkout plugin in file class-wc-gateway-ppec-admin-handler.php
\WC_Gateway_PPEC_Admin_Handler::__construct add_action( 'woocommerce_order_status_processing', array( $this, 'capture_payment' ) ); add_action( 'woocommerce_order_status_completed', array( $this, 'capture_payment' ) ); add_action( 'woocommerce_order_status_cancelled', array( $this, 'cancel_authorization' ) ); add_action( 'woocommerce_order_status_refunded', array( $this, 'cancel_authorization' ) );
best regards
David
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Capture amount when changing state’ is closed to new replies.