public function PayPalPaymentECPaymentMethodController::statusMap in PayPal for Payment 7
Returns a map of PayPal statuses to Payment statuses.
Return value
array Keys are PayPal statuses, values are Payment statuses.
1 call to PayPalPaymentECPaymentMethodController::statusMap()
- PayPalPaymentECPaymentMethodController::convertStatus in paypal_payment_ec/
includes/ PayPalPaymentECPaymentMethodController.inc - Converts a PayPal status to a Payment status.
File
- paypal_payment_ec/
includes/ PayPalPaymentECPaymentMethodController.inc, line 326
Class
- PayPalPaymentECPaymentMethodController
- A PayPal Express Checkout payment method.
Code
public function statusMap() {
return array(
'Canceled-Reversal' => PAYPAL_PAYMENT_STATUS_CANCELLED_REVERSAL,
'In-Progress' => PAYMENT_STATUS_PENDING,
'Partially-Refunded' => PAYPAL_PAYMENT_STATUS_PARTIALLY_REFUNDED,
'Completed-Funds-Held' => PAYPAL_PAYMENT_STATUS_COMPLETED_FUNDS_HELD,
) + PayPalPaymentIPNController::statusMap();
}