_after_webhook_action hook
-
I used the below hook to check if payment is chargeback “_after_webhook_action”
?add_action('mollie-payments-for-woocommerce_after_webhook_action', 'mollie_webhook_handler', 10, 2);
?function mollie_webhook_handler($payment, $order)
?{
? ? ?$orderId = $order->id;
? ? ? ? $metaValue = get_post_meta($orderId, '_mollie_processed_chargeback_ids', true);
? ? ? ? if ($metaValue) {
? ? ? ? ? ?// condition
? ? ? ? }else{
? ? ? ? ? ? // do stuffs
? ? ? ? }
?}The above code works after redirect from mollie to the website , but during any webhook action it should trigger as per my understanding when looking to the core plugin code.
But this hook has not triggered after chargeback hook which executed inside mollie account. but webhook has changed the order status to on-hold as per core plugin feature, why this hook is not called ? how to run hook for chargeback webhook actions ?
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- You must be logged in to reply to this topic.