Class Mage_Paypal_Model_Info
PayPal payment information model
Aware of all PayPal payment methods Collects and provides access to PayPal-specific payment data Provides business logic information about payment flow
Copyright: Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
License: Open Software License (OSL 3.0)
Located at code/core/Mage/Paypal/Model/Info.php
public
array
|
#
getPaymentInfo(
All available payment info getter |
public
array
|
#
getPublicPaymentInfo(
Public payment info getter |
public
|
#
importToPayment( array|Varien_Object|callable $from,
Grab data from source and map it into payment |
public
array|Varien_Object
&
|
#
exportFromPayment(
Grab data from payment and map it into target |
public static
boolean
|
#
isPaymentReviewRequired(
Check whether the payment is in review state |
public static
boolean
|
#
isFraudReviewAllowed(
Check whether fraud order review detected and can be reviewed |
public static
boolean
|
|
public static
boolean
|
#
isPaymentSuccessful(
Check whether the payment was processed successfully |
public static
boolean
|
#
isPaymentFailed(
Check whether the payment was processed unsuccessfully or failed |
public static
string
|
|
public static
string
|
|
public static
bool;
|
|
protected
|
#
_getFullInfo( array $keys,
Render info item |
protected
|
|
protected
string
|
|
protected
string
|
|
protected
string
|
|
private
string
|
|
private
string
|
|
protected
string
|
#
_getBuyerIdTypeValue( string $code )
Retrieve buyer id type value based on code received from PayPal (Brazil only) |
string |
PAYER_ID
|
'payer_id' |
#
Cross-models public exchange keys |
string |
PAYER_EMAIL
|
'email' |
|
string |
PAYER_STATUS
|
'payer_status' |
|
string |
ADDRESS_ID
|
'address_id' |
|
string |
ADDRESS_STATUS
|
'address_status' |
|
string |
PROTECTION_EL
|
'protection_eligibility' |
|
string |
FRAUD_FILTERS
|
'collected_fraud_filters' |
|
string |
CORRELATION_ID
|
'correlation_id' |
|
string |
AVS_CODE
|
'avs_result' |
|
string |
CVV2_MATCH
|
'cvv2_check_result' |
|
string |
CENTINEL_VPAS
|
'centinel_vpas_result' |
|
string |
CENTINEL_ECI
|
'centinel_eci_result' |
|
string |
BUYER_TAX_ID
|
'buyer_tax_id' |
|
string |
BUYER_TAX_ID_TYPE
|
'buyer_tax_id_type' |
|
string |
PAYMENT_STATUS
|
'payment_status' |
|
string |
PENDING_REASON
|
'pending_reason' |
|
string |
IS_FRAUD
|
'is_fraud_detected' |
|
string |
PAYMENT_STATUS_GLOBAL
|
'paypal_payment_status' |
|
string |
PENDING_REASON_GLOBAL
|
'paypal_pending_reason' |
|
string |
IS_FRAUD_GLOBAL
|
'paypal_is_fraud_detected' |
|
string |
BUYER_TAX_ID_TYPE_CPF
|
'BR_CPF' |
#
Possible buyer's tax id types (Brazil only) |
string |
BUYER_TAX_ID_TYPE_CNPJ
|
'BR_CNPJ' |
|
string |
PAYMENTSTATUS_NONE
|
'none' |
#
PayPal payment status possible values |
string |
PAYMENTSTATUS_COMPLETED
|
'completed' |
|
string |
PAYMENTSTATUS_DENIED
|
'denied' |
|
string |
PAYMENTSTATUS_EXPIRED
|
'expired' |
|
string |
PAYMENTSTATUS_FAILED
|
'failed' |
|
string |
PAYMENTSTATUS_INPROGRESS
|
'in_progress' |
|
string |
PAYMENTSTATUS_PENDING
|
'pending' |
|
string |
PAYMENTSTATUS_REFUNDED
|
'refunded' |
|
string |
PAYMENTSTATUS_REFUNDEDPART
|
'partially_refunded' |
|
string |
PAYMENTSTATUS_REVERSED
|
'reversed' |
|
string |
PAYMENTSTATUS_UNREVERSED
|
'canceled_reversal' |
|
string |
PAYMENTSTATUS_PROCESSED
|
'processed' |
|
string |
PAYMENTSTATUS_VOIDED
|
'voided' |
protected
array
|
$_paymentMap | array(
self::PAYER_ID => 'paypal_payer_id',
self::PAYER_EMAIL => 'paypal_payer_email',
self::PAYER_STATUS => 'paypal_payer_status',
self::ADDRESS_ID => 'paypal_address_id',
self::ADDRESS_STATUS => 'paypal_address_status',
self::PROTECTION_EL => 'paypal_protection_eligibility',
self::FRAUD_FILTERS => 'paypal_fraud_filters',
self::CORRELATION_ID => 'paypal_correlation_id',
self::AVS_CODE => 'paypal_avs_code',
self::CVV2_MATCH => 'paypal_cvv2_match',
self::CENTINEL_VPAS => self::CENTINEL_VPAS,
self::CENTINEL_ECI => self::CENTINEL_ECI,
self::BUYER_TAX_ID => self::BUYER_TAX_ID,
self::BUYER_TAX_ID_TYPE => self::BUYER_TAX_ID_TYPE,
) |
#
All payment information map |
protected
array
|
$_systemMap | array(
self::PAYMENT_STATUS => self::PAYMENT_STATUS_GLOBAL,
self::PENDING_REASON => self::PENDING_REASON_GLOBAL,
self::IS_FRAUD => self::IS_FRAUD_GLOBAL,
) |
#
System information map |
protected
array
|
$_paymentPublicMap | array(
'paypal_payer_email',
self::BUYER_TAX_ID,
self::BUYER_TAX_ID_TYPE
) |
#
Map of payment information available to customer |
protected
array
|
$_paymentMapFull | array() |
#
Rendered payment map cache |