{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

ParameterTypeDescription
$orderWC_OrderWooCommerce order
$instanceSeQura\WC\Services\Payment\Sequra_Payment_GatewayPayment gateway instance

Changelog

VersionDescription
2.0.0Introduced

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);