{webhook_identifier}_process_webhook
Hook
Action
Allow execute some custom code when a webhook is processed
Description
Allow execute some custom code when a webhook is processed
Parameter | Type | Description |
---|---|---|
$order | WC_Order | WooCommerce order |
$instance | SeQura\WC\Services\Payment\Sequra_Payment_Gateway | Payment gateway instance |
Changelog
Version | Description |
---|---|
2.0.0 | Introduced |
Usage Example
You must change {webhook_identifier}
with the appropriated ID according the scenario.
For IPN:
add_action('woocommerce_sequra_ipn_process_webhook', function($order, $instance){
// Add your custom code
}, 10, 2);
For events:
add_action('woocommerce_sequra_process_webhook', function($order, $instance){
// Add your custom code
}, 10, 2);
Updated about 1 month ago