Hi,
Using $order->payment_complete($transaction_id) is the correct way to to set an order to "processing" and reduce stock. This will make it more compatible with Woocommerce and other plugins.
|
update_post_meta( $order_id, '_transaction_id', $result['action_id'] ); |
|
update_post_meta($order_id, '_transaction_id', $action['0']['id']); |
|
update_post_meta($order_id, '_transaction_id', $result['id']); |
|
update_post_meta($order_id, '_transaction_id', $action_id); |
|
update_post_meta($order_id, '_transaction_id', $result['id']); |
|
update_post_meta( $order_id, '_transaction_id', $result['action_id'] ); |
|
update_post_meta( $order_id, '_transaction_id', $result['id'] ); |
|
update_post_meta($order_id, '_transaction_id', $result['action_id']); |
|
update_post_meta( $order_id, '_transaction_id', $result['action_id'] ); |
Might have miss some but these should be updated to using $order->payment_complete($transaction_id).
Thanks
Hi,
Using $order->payment_complete($transaction_id) is the correct way to to set an order to "processing" and reduce stock. This will make it more compatible with Woocommerce and other plugins.
checkout-woocommerce-plugin/woocommerce-gateway-checkout-com/includes/class-wc-gateway-checkout-com-cards.php
Line 391 in b6315e5
checkout-woocommerce-plugin/woocommerce-gateway-checkout-com/includes/class-wc-gateway-checkout-com-cards.php
Line 491 in b6315e5
checkout-woocommerce-plugin/woocommerce-gateway-checkout-com/includes/class-wc-gateway-checkout-com-cards.php
Line 495 in b6315e5
checkout-woocommerce-plugin/woocommerce-gateway-checkout-com/includes/class-wc-gateway-checkout-com-webhook.php
Line 143 in da4ae44
checkout-woocommerce-plugin/woocommerce-gateway-checkout-com/includes/apms/class-wc-checkoutcom-fawry.php
Line 74 in da4ae44
checkout-woocommerce-plugin/woocommerce-gateway-checkout-com/includes/class-wc-gateway-checkout-com-alternative-payments.php
Line 102 in da4ae44
checkout-woocommerce-plugin/woocommerce-gateway-checkout-com/includes/apms/class-wc-checkoutcom-sepa.php
Line 118 in da4ae44
checkout-woocommerce-plugin/woocommerce-gateway-checkout-com/includes/class-wc-gateway-checkout-com-google-pay.php
Line 323 in da4ae44
checkout-woocommerce-plugin/woocommerce-gateway-checkout-com/includes/class-wc-gateway-checkout-com-apple-pay.php
Line 549 in da4ae44
Might have miss some but these should be updated to using $order->payment_complete($transaction_id).
Thanks