Can’t catch ‘woocommerce_payment_complete’
-
Hello.
I use gift cart plugin and Payment by Cardknox (your plugin).
Gift card created code on
add_action( ‘woocommerce_payment_complete’, …, 10 );
add_action( ‘woocommerce_order_status_completed’, …, 10, 2 );BUT your plugin not use $order->payment_complete($result[‘xRefNum’]); for catch do_action( ‘woocommerce_payment_complete’, $transaction_id );
I changed line 390 (from $order->set_transaction_id($result[‘xRefNum’]); to $order->payment_complete($result[‘xRefNum’]); ) of woocommerce-gateway-cardknox.php file for mi site.
Please do this changes in you new release.
The topic ‘Can’t catch ‘woocommerce_payment_complete’’ is closed to new replies.