You are here

public static function PayPalPaymentIPNController::pendingStatusMap in PayPal for Payment 7

Returns a map of PayPal "pending" statuses to Payment statuses.

Return value

array Keys are PayPal pending reasons, values are Payment statuses.

3 calls to PayPalPaymentIPNController::pendingStatusMap()
PayPalPaymentECPaymentMethodController::convertStatus in paypal_payment_ec/includes/PayPalPaymentECPaymentMethodController.inc
Converts a PayPal status to a Payment status.
PayPalPaymentIPNController::convertStatus in paypal_payment_ipn/includes/PayPalPaymentIPNController.inc
Converts a PayPal status to a Payment status.
PayPalPaymentIPNControllerTest::testPendingStatusMap in paypal_payment_ipn/tests/PayPalPaymentIPNControllerTest.test
Tests pendingStatusMap().

File

paypal_payment_ipn/includes/PayPalPaymentIPNController.inc, line 250

Class

PayPalPaymentIPNController
Provides IPN functionality.

Code

public static function pendingStatusMap() {
  return array(
    'address' => PAYPAL_PAYMENT_STATUS_ADDRESS,
    'authorization' => PAYPAL_PAYMENT_STATUS_WAITING_FOR_CAPTURE,
    'echeck' => PAYPAL_PAYMENT_STATUS_WAITING_FOR_CLEARANCE,
    'intl' => PAYPAL_PAYMENT_STATUS_INTL,
    'multi-currency' => PAYPAL_PAYMENT_STATUS_MULTI_CURRENCY,
    'order' => PAYPAL_PAYMENT_STATUS_WAITING_FOR_CAPTURE,
    'paymentreview' => PAYPAL_PAYMENT_STATUS_REVIEW,
    'unilateral' => PAYPAL_PAYMENT_STATUS_UNILATERAL,
    'upgrade' => PAYPAL_PAYMENT_STATUS_UPGRADE,
    'verify' => PAYPAL_PAYMENT_STATUS_VERIFY,
    'other' => PAYMENT_STATUS_PENDING,
  );
}