You are here

function uc_paypal_ec_review_form_validate in Ubercart 5

Same name and namespace in other branches
  1. 6.2 payment/uc_paypal/uc_paypal.pages.inc \uc_paypal_ec_review_form_validate()
  2. 7.3 payment/uc_paypal/uc_paypal.pages.inc \uc_paypal_ec_review_form_validate()

File

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

Code

function uc_paypal_ec_review_form_validate($form_id, $form_values) {
  if ($form_values['shippable'] == 'true') {
    if (!isset($_POST['quote-option'])) {
      form_set_error('shipping', t('You must calculate and select a shipping option.'));
    }
  }
}