You are here

function commerce_coupon_commerce_checkout_router in Commerce Coupon 7.2

Implements hook_commerce_checkout_router().

File

./commerce_coupon.module, line 1343
Provides coupon functionality for Drupal Commerce.

Code

function commerce_coupon_commerce_checkout_router($order) {

  // Rollback transactions if the cancel URL was hit. This must be done before
  // the refresh happens so the checkout_router hook is used.
  if (arg(3) == 'back' && arg(4) == $order->data['payment_redirect_key']) {
    commerce_coupon_rollback_order_transactions($order);
  }
}