You are here

function commerce_payflow_link_redirect_form_back in Commerce PayPal 7.2

Payment method callback: redirect form back callback.

File

modules/payflow/commerce_payflow.module, line 670
Implements PayPal Payments Advanced (U.S. only) and Payflow Link Hosted Checkout pages and Transparent Redirect.

Code

function commerce_payflow_link_redirect_form_back($order, $payment_method) {

  // Display a message indicating the customer canceled payment.
  drupal_set_message(t('You have canceled payment at PayPal but may resume the checkout process here when you are ready.'));

  // Remove the payment information from the order data array.
  unset($order->data['commerce_payflow']);
  unset($order->data['payment_method']);
}