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.

ParameterTypeDescription
$resultarrayProcess payment results
$orderWC_OrderWooCommerce Order
$instanceSeQura\WC\Services\Payment\Sequra_Payment_GatewayPayment gateway instance

Changelog

VersionDescription
3.0.0Introduced

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