You are here

function CALLBACK_commerce_payment_method_redirect_form_back in Commerce Core 7

Payment method callback; cancellation callback for the redirected payments.

If the customer cancels payment or payment fails at the redirected payment service, the customer will be sent back to the previous checkout page upon return from the payment service. Before the redirect occurs, the payment method module has the opportunity to take additional action by implementing this callback. Note that updating the order status and performing the redirect are handled by the Payment module, so these two operations should not be duplicated by the payment method module.

Related topics

File

modules/payment/commerce_payment.api.php, line 275
Hooks provided by the Payment module.

Code

function CALLBACK_commerce_payment_method_redirect_form_back($order, $payment_method) {

  // No example.
}