You are here

function uc_paypal_cancel in Ubercart 5

Same name and namespace in other branches
  1. 6.2 payment/uc_paypal/uc_paypal.pages.inc \uc_paypal_cancel()
  2. 7.3 payment/uc_paypal/uc_paypal.pages.inc \uc_paypal_cancel()
1 string reference to 'uc_paypal_cancel'
uc_paypal_menu in payment/uc_paypal/uc_paypal.module
Implementation of hook_menu().

File

payment/uc_paypal/uc_paypal.module, line 756
Integrates various PayPal payment services and Instant Payment Notifications (IPN) with Ubercart!

Code

function uc_paypal_cancel() {
  unset($_SESSION['cart_order']);
  drupal_set_message(t('Your PayPal.com payment was cancelled. Please feel free to continue shopping or contact us for assistance.'));
  drupal_goto('cart');
}