You are here

protected function PayPalController::pendingMessage in Ubercart 8.4

Returns a message for the pending reason of a PayPal payment.

1 call to PayPalController::pendingMessage()
PayPalController::processIpn in payment/uc_paypal/src/Controller/PayPalController.php
Processes Instant Payment Notifications from PayPal.

File

payment/uc_paypal/src/Controller/PayPalController.php, line 246

Class

PayPalController
Returns responses for PayPal routes.

Namespace

Drupal\uc_paypal\Controller

Code

protected function pendingMessage($reason) {
  switch ($reason) {
    case 'address':
      return $this
        ->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 $this
        ->t('The payment is pending because you set the payment action to Authorization and have not yet captured funds.');
    case 'echeck':
      return $this
        ->t('The payment is pending because it was made by an eCheck that has not yet cleared.');
    case 'intl':
      return $this
        ->t('The payment is pending because you hold a non-U.S. account and do not have a withdrawal mechanism. You must manually accept or deny this international payment from your Account Overview.');
    case 'multi_currency':
      return $this
        ->t('The payment is pending because 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. You must manually accept or deny a payment of this currency from your Account Overview.');
    case 'order':
      return $this
        ->t('The payment is pending because you set the payment action to Order and have not yet captured funds.');
    case 'paymentreview':
      return $this
        ->t('The payment is pending while it is being reviewed by PayPal for risk.');
    case 'unilateral':
      return $this
        ->t('The payment is pending because it was made to an e-mail address that is not yet registered or confirmed.');
    case 'upgrade':
      return $this
        ->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 $this
        ->t('The payment is pending because you are not yet a verified PayPal member. Please verify your account.');
    case 'other':
      return $this
        ->t('The payment is pending for a reason other than those listed above. For more information, contact PayPal Customer Service.');
    default:
      return $this
        ->t('Reason "@reason" unknown; contact PayPal Customer Service for more information.', [
        '@reason' => $reason,
      ]);
  }
}