You are here

function _uc_paypal_reversal_message in Ubercart 6.2

Same name and namespace in other branches
  1. 5 payment/uc_paypal/uc_paypal.module \_uc_paypal_reversal_message()
  2. 7.3 payment/uc_paypal/uc_paypal.module \_uc_paypal_reversal_message()

Return a message for the reason code of a PayPal reversal.

1 call to _uc_paypal_reversal_message()
uc_paypal_ipn in payment/uc_paypal/uc_paypal.pages.inc
Process Instant Payment Notifiations from PayPal.

File

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

Code

function _uc_paypal_reversal_message($reason) {
  switch ($reason) {
    case 'chargeback':
      return t('The customer has initiated a chargeback.');
    case 'guarantee':
      return t('The customer triggered a money-back guarantee.');
    case 'buyer-complaint':
      return t('The customer filed a complaint about the transaction.');
    case 'refund':
      return t('You gave the customer a refund.');
    case 'other':
    default:
      return t('Reason "@reason" unknown; contact PayPal Customer Service for more information.', array(
        '@reason' => $reason,
      ));
  }
}