You are here

function commerce_paypal_short_pending_reason in Commerce PayPal 7.2

Returns a short description of the pending reason based on the given value.

3 calls to commerce_paypal_short_pending_reason()
commerce_payflow_link_redirect_form_submit in modules/payflow/commerce_payflow.module
Payment method callback: redirect form return submission.
commerce_paypal_ec_capture_form_submit in modules/ec/includes/commerce_paypal_ec.admin.inc
Submit handler: process a prior authorization capture via PayPal EC.
commerce_paypal_ec_do_payment in modules/ec/commerce_paypal_ec.module
Confirm an Express Checkout payment for an order for the specified charge amount with a DoExpressCheckoutPayment API request.

File

./commerce_paypal.module, line 600
Implements PayPal payment services for use with Drupal Commerce.

Code

function commerce_paypal_short_pending_reason($pendingreason) {
  switch ($pendingreason) {
    case 'none':
      return t('No pending reason.');
    case 'authorization':
      return t('Authorization pending capture.');
    case 'address':
      return t('Pending unconfirmed address review.');
    case 'echeck':
      return t('eCheck has not yet cleared.');
    case 'intl':
      return t('Pending international transaction review.');
    case 'multi-currency':
      return t('Pending multi-currency review.');
    case 'verify':
      return t('Payment held until your account is verified.');
    case 'completed':
      return t('Payment has been completed.');
    case 'other':
      return t('Pending for an unknown reason.');
    default:
      return '';
  }
}