function commerce_paypal_ipn_pending_reason in Commerce PayPal 7
Same name and namespace in other branches
- 7.2 commerce_paypal.module \commerce_paypal_ipn_pending_reason()
Returns an appropriate message given a pending reason.
1 call to commerce_paypal_ipn_pending_reason()
- commerce_paypal_wps_paypal_ipn_process in modules/
wps/ commerce_paypal_wps.module - Payment method callback: process an IPN once it's been validated.
File
- ./
commerce_paypal.module, line 255 - Implements PayPal payment services for use with Drupal Commerce.
Code
function commerce_paypal_ipn_pending_reason($pending_reason) {
switch ($pending_reason) {
case 'address':
return t('The payment is pending because your customer did not include a confirmed shipping address and your Payment Receiving Preferences is set to allow you to manually accept or deny each of these payments.');
case 'authorization':
return t('You set the payment action to Authorization and have not yet captured funds.');
case 'echeck':
return t('The payment is pending because it was made by an eCheck that has not yet cleared.');
case 'intl':
return t('The payment is pending because you hold a non-U.S. account and do not have a withdrawal mechanism.');
case 'multi-currency':
return t('You do not have a balance in the currency sent, and you do not have your Payment Receiving Preferences set to automatically convert and accept this payment.');
case 'order':
return t('You set the payment action to Order and have not yet captured funds.');
case 'paymentreview':
return t('The payment is pending while it is being reviewed by PayPal for risk.');
case 'unilateral':
return t('The payment is pending because it was made to an e-mail address that is not yet registered or confirmed.');
case 'upgrade':
return t('The payment is pending because it was either made via credit card and you do not have a Business or Premier account or you have reached the monthly limit for transactions on your account.');
case 'verify':
return t('The payment is pending because you are not yet verified.');
case 'other':
return t('The payment is pending for a reason other than those listed above. For more information, contact PayPal Customer Service.');
}
}