sequra_checkout_process_payment_return
Hook
Filter
Allow modifying process payment method result value
Description
Allow modifying process payment method result value in seQura payment gateway.
Parameter | Type | Description |
---|---|---|
$result | array | Process payment results |
$order | WC_Order | WooCommerce Order |
$instance | SeQura\WC\Services\Payment\Sequra_Payment_Gateway | Payment gateway instance |
Changelog
Version | Description |
---|---|
3.0.0 | Introduced |
Usage Example
add_filter('sequra_checkout_process_payment_return', function($result, $order, $instance){
// Customize the process payment result.
$result = array(
'result' => 'success',
'redirect' => $order->get_checkout_payment_url( true ),
);
}, 10, 3);
Updated about 1 month ago