function CALLBACK_commerce_payment_method_redirect_form_validate in Commerce Core 7
Payment method callback; validation callback for redirected payments.
Upon return from a redirected payment service, this callback provides the payment method an opportunity to validate any returned data before proceeding to checkout completion; should return TRUE or FALSE indicating whether or not the customer should proceed to checkout completion or go back a step in the checkout process from the payment page.
Parameters
$order: The order object.
$payment_method: The payment method array.
Return value
TRUE if the customer should proceed to checkout completion or FALSE to go back one step in the checkout process.
Related topics
File
- modules/
payment/ commerce_payment.api.php, line 296 - Hooks provided by the Payment module.
Code
function CALLBACK_commerce_payment_method_redirect_form_validate($order, $payment_method) {
// No example.
}