|
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
| getPaymentInfo (\Magento\Payment\Model\InfoInterface $payment, $labelValuesOnly=false) | |
| getPublicPaymentInfo (\Magento\Payment\Model\InfoInterface $payment, $labelValuesOnly=false) | |
| importToPayment ($from, \Magento\Payment\Model\InfoInterface $payment) | |
| & | exportFromPayment (\Magento\Payment\Model\InfoInterface $payment, $to, array $map=null) |
Static Public Member Functions | |
| static | isPaymentReviewRequired (\Magento\Payment\Model\InfoInterface $payment) |
| static | isFraudReviewAllowed (\Magento\Payment\Model\InfoInterface $payment) |
| static | isPaymentCompleted (\Magento\Payment\Model\InfoInterface $payment) |
| static | isPaymentSuccessful (\Magento\Payment\Model\InfoInterface $payment) |
| static | isPaymentFailed (\Magento\Payment\Model\InfoInterface $payment) |
| static | explainPendingReason ($code) |
| static | explainReasonCode ($code) |
| static | isReversalDisputable ($code) |
| static | getCaseTypeLabel ($key) |
Data Fields | |
| const | PAYER_ID = 'payer_id' |
| const | PAYER_EMAIL = 'email' |
| const | PAYER_STATUS = 'payer_status' |
| const | ADDRESS_ID = 'address_id' |
| const | ADDRESS_STATUS = 'address_status' |
| const | PROTECTION_EL = 'protection_eligibility' |
| const | FRAUD_FILTERS = 'collected_fraud_filters' |
| const | CORRELATION_ID = 'correlation_id' |
| const | AVS_CODE = 'avs_result' |
| const | AVSADDR = 'avsaddr' |
| const | AVSZIP = 'avszip' |
| const | IAVS = 'iavs' |
| const | CVV2MATCH = 'cvv2match' |
| const | CVV_2_MATCH = 'cvv_2_check_result' |
| const | BUYER_TAX_ID = 'buyer_tax_id' |
| const | BUYER_TAX_ID_TYPE = 'buyer_tax_id_type' |
| const | PAYMENT_STATUS = 'payment_status' |
| const | PENDING_REASON = 'pending_reason' |
| const | IS_FRAUD = 'is_fraud_detected' |
| const | PAYMENT_STATUS_GLOBAL = 'paypal_payment_status' |
| const | PENDING_REASON_GLOBAL = 'paypal_pending_reason' |
| const | IS_FRAUD_GLOBAL = 'paypal_is_fraud_detected' |
| const | BUYER_TAX_ID_TYPE_CPF = 'BR_CPF' |
| const | BUYER_TAX_ID_TYPE_CNPJ = 'BR_CNPJ' |
| const | PAYMENTSTATUS_NONE = 'none' |
| const | PAYMENTSTATUS_COMPLETED = 'completed' |
| const | PAYMENTSTATUS_DENIED = 'denied' |
| const | PAYMENTSTATUS_EXPIRED = 'expired' |
| const | PAYMENTSTATUS_FAILED = 'failed' |
| const | PAYMENTSTATUS_INPROGRESS = 'in_progress' |
| const | PAYMENTSTATUS_PENDING = 'pending' |
| const | PAYMENTSTATUS_REFUNDED = 'refunded' |
| const | PAYMENTSTATUS_REFUNDEDPART = 'partially_refunded' |
| const | PAYMENTSTATUS_REVERSED = 'reversed' |
| const | PAYMENTSTATUS_UNREVERSED = 'canceled_reversal' |
| const | PAYMENTSTATUS_PROCESSED = 'processed' |
| const | PAYMENTSTATUS_VOIDED = 'voided' |
| const | PAYMENTSTATUS_REVIEW = 'paymentreview' |
| const | TXN_TYPE_ADJUSTMENT = 'adjustment' |
| const | TXN_TYPE_NEW_CASE = 'new_case' |
| const | PAYMENT_REASON_CODE_REFUND = 'refund' |
| const | ORDER_STATUS_REVERSED = 'paypal_reversed' |
| const | ORDER_STATUS_CANCELED_REVERSAL = 'paypal_canceled_reversal' |
| const | PAYPAL_PAYER_ID = 'paypal_payer_id' |
| const | PAYPAL_PAYER_EMAIL = 'paypal_payer_email' |
| const | PAYPAL_PAYER_STATUS = 'paypal_payer_status' |
| const | PAYPAL_ADDRESS_ID = 'paypal_address_id' |
| const | PAYPAL_ADDRESS_STATUS = 'paypal_address_status' |
| const | PAYPAL_PROTECTION_ELIGIBILITY = 'paypal_protection_eligibility' |
| const | PAYPAL_FRAUD_FILTERS = 'paypal_fraud_filters' |
| const | PAYPAL_CORRELATION_ID = 'paypal_correlation_id' |
| const | PAYPAL_AVS_CODE = 'paypal_avs_code' |
| const | PAYPAL_CVV_2_MATCH = 'paypal_cvv_2_match' |
| const | ITEM_LABELS = 'item labels' |
| const | PAYPAL_AVSADDR = 'avsaddr' |
| const | PAYPAL_AVSZIP = 'avszip' |
| const | PAYPAL_IAVS = 'iavs' |
| const | PAYPAL_CVV2MATCH = 'cvv2match' |
Protected Member Functions | |
| _getFullInfo (array $keys, \Magento\Payment\Model\InfoInterface $payment, $labelValuesOnly) | |
| _getLabel ($key) | |
| _getValue ($value, $key) | |
| _getAvsLabel ($value) | |
| _getCvv2Label ($value) | |
| _getBuyerIdTypeValue ($code) | |
Protected Attributes | |
| $_paymentMap | |
| $_systemMap | |
| $_paymentPublicMap = ['paypal_payer_email', self::BUYER_TAX_ID, self::BUYER_TAX_ID_TYPE] | |
| $_paymentMapFull = [] | |
| $_labelCodesCache = [] | |
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
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
static |
Explain pending payment reason code
| string | $code |
Definition at line 435 of file Info.php.
|
static |
Explain the refund or chargeback reason code
| string | $code |
Definition at line 484 of file Info.php.
| & exportFromPayment | ( | \Magento\Payment\Model\InfoInterface | $payment, |
| $to, | |||
| array | $map = null |
||
| ) |
|
static |
Get case type label
| string | $key |
| getPaymentInfo | ( | \Magento\Payment\Model\InfoInterface | $payment, |
$labelValuesOnly = false |
|||
| ) |
All available payment info getter
| \Magento\Payment\Model\InfoInterface | $payment | |
| bool | $labelValuesOnly |
Definition at line 268 of file Info.php.
| getPublicPaymentInfo | ( | \Magento\Payment\Model\InfoInterface | $payment, |
$labelValuesOnly = false |
|||
| ) |
Public payment info getter
| \Magento\Payment\Model\InfoInterface | $payment | |
| bool | $labelValuesOnly |
Definition at line 292 of file Info.php.
| importToPayment | ( | $from, | |
| \Magento\Payment\Model\InfoInterface | $payment | ||
| ) |
Grab data from source and map it into payment
| array | \Magento\Framework\DataObject | callback | $from | |
| \Magento\Payment\Model\InfoInterface | $payment |
Definition at line 304 of file Info.php.
|
static |
Check whether fraud order review detected and can be reviewed
| \Magento\Payment\Model\InfoInterface | $payment |
Definition at line 354 of file Info.php.
|
static |
|
static |
|
static |
|
static |
|
static |
|
protected |
|
protected |
|
protected |
| const BUYER_TAX_ID_TYPE_CPF = 'BR_CPF' |
| const ITEM_LABELS = 'item labels' |
| const ORDER_STATUS_CANCELED_REVERSAL = 'paypal_canceled_reversal' |
| const ORDER_STATUS_REVERSED = 'paypal_reversed' |
| const PAYMENT_REASON_CODE_REFUND = 'refund' |
| const PAYPAL_ADDRESS_ID = 'paypal_address_id' |
| const PAYPAL_ADDRESS_STATUS = 'paypal_address_status' |
| const PAYPAL_AVS_CODE = 'paypal_avs_code' |
| const PAYPAL_AVSADDR = 'avsaddr' |
| const PAYPAL_CORRELATION_ID = 'paypal_correlation_id' |
| const PAYPAL_CVV_2_MATCH = 'paypal_cvv_2_match' |
| const PAYPAL_FRAUD_FILTERS = 'paypal_fraud_filters' |
| const PAYPAL_IAVS = 'iavs' |
| const PAYPAL_PAYER_EMAIL = 'paypal_payer_email' |
| const PAYPAL_PAYER_ID = 'paypal_payer_id' |
| const PAYPAL_PAYER_STATUS = 'paypal_payer_status' |
| const PAYPAL_PROTECTION_ELIGIBILITY = 'paypal_protection_eligibility' |
| const TXN_TYPE_ADJUSTMENT = 'adjustment' |