Class Mage_PaypalUk_Model_Api_Nvp
NVP API wrappers model
- Varien_Object
- Mage_Paypal_Model_Api_Abstract
- Mage_Paypal_Model_Api_Nvp
- Mage_PaypalUk_Model_Api_Nvp
Copyright: Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
License: Open Software License (OSL 3.0)
Located at code/core/Mage/PaypalUk/Model/Api/Nvp.php
public
string
|
|
public
string
|
|
public
string
|
|
public
string
|
|
public
string
|
|
public
string
|
|
public
string
|
#
getPaypalTransactionId( )
Override transaction id getting to process payflow accounts not assigned to paypal side |
protected
array
|
|
protected
string
|
|
protected
string
|
|
protected
boolean|
|
|
protected
|
|
protected
string
|
|
protected
mixed
|
|
public
|
|
protected
|
#
_importFraudFiltersResult( array $from, array $collectedWarnings )
Get FMF results from response, if any |
protected
array
|
#
_prepareEachCallRequest( string $methodName )
Return each call request fields (PayFlow edition doesn't support Unilateral payments) |
protected
array
|
#
_prepareExpressCheckoutCallRequest( array & $requestFields )
Overwrite parent logic, simply return input data (PayFlow edition doesn't support Unilateral payments) |
protected
|
#
_applyCountryWorkarounds( array & $request )
Adopt specified request array to be compatible with Paypal Puerto Rico should be as state of USA and not as a country |
mixed |
TRXTYPE_AUTH_ONLY
|
'A' |
#
Transaction types declaration |
mixed |
TRXTYPE_SALE
|
'S' |
|
mixed |
TRXTYPE_CREDIT
|
'C' |
|
mixed |
TRXTYPE_DELAYED_CAPTURE
|
'D' |
|
mixed |
TRXTYPE_DELAYED_VOID
|
'V' |
|
mixed |
TENDER_CC
|
'C' |
#
Tender definition |
mixed |
TENDER_PAYPAL
|
'P' |
|
string |
EXPRESS_SET
|
'S' |
#
Express Checkout Actions |
string |
EXPRESS_GET
|
'G' |
|
string |
EXPRESS_DO_PAYMENT
|
'D' |
|
mixed |
RESPONSE_CODE_APPROVED
|
0 |
#
Response codes definition |
mixed |
RESPONSE_CODE_FRAUD
|
126 |
protected
string
|
$_captureTypeComplete | 'Y' |
#
Capture types (make authorization close or remain open) |
protected
string
|
$_captureTypeNotcomplete | 'N' |
|
protected
array
|
$_globalMap | array(
// each call
'PARTNER' => 'partner',
'VENDOR' => 'vendor',
'USER' => 'user',
'PWD' => 'password',
'BUTTONSOURCE' => 'build_notation_code',
'TENDER' => 'tender',
// commands
'RETURNURL' => 'return_url',
'CANCELURL' => 'cancel_url',
'INVNUM' => 'inv_num',
'TOKEN' => 'token',
'CORRELATIONID' => 'correlation_id',
'CUSTIP' => 'ip_address',
'NOTIFYURL' => 'notify_url',
'NOTE' => 'note',
// style settings
'PAGESTYLE' => 'page_style',
'HDRIMG' => 'hdrimg',
'HDRBORDERCOLOR' => 'hdrbordercolor',
'HDRBACKCOLOR' => 'hdrbackcolor',
'PAYFLOWCOLOR' => 'payflowcolor',
'LOCALECODE' => 'locale_code',
// transaction info
'PPREF' => 'paypal_transaction_id', //We need to store paypal trx id for correct IPN working
'PNREF' => 'transaction_id',
'ORIGID' => 'authorization_id',
'CAPTURECOMPLETE' => 'complete_type',
'AMT' => 'amount',
'AVSADDR' => 'address_verification',
'AVSZIP' => 'postcode_verification',
// payment/billing info
'CURRENCY' => 'currency_code',
'PENDINGREASON' => 'pending_reason',
'PAYERID' => 'payer_id',
'PAYERSTATUS' => 'payer_status',
'EMAIL' => 'email',
// backwards compatibility
'FIRSTNAME' => 'firstname',
'LASTNAME' => 'lastname',
// paypal direct credit card information
'ACCT' => 'credit_card_number',
'EXPDATE' => 'credit_card_expiration_date',
'CVV2' => 'credit_card_cvv2',
'CARDSTART' => 'maestro_solo_issue_date', // MMYY, including leading zero
'CARDISSUE' => 'maestro_solo_issue_number',
'CVV2MATCH' => 'cvv2_check_result',
// cardinal centinel
'AUTHSTATUS3DS' => 'centinel_authstatus',
'MPIVENDOR3DS' => 'centinel_mpivendor',
'CAVV' => 'centinel_cavv',
'ECI' => 'centinel_eci',
'XID' => 'centinel_xid',
'VPAS' => 'centinel_vpas_result',
'ECISUBMITTED3DS' => 'centinel_eci_result',
) |
#
Global public interface map |
protected
array
|
$_debugReplacePrivateDataKeys | array(
'ACCT', 'EXPDATE', 'CVV2',
'PARTNER', 'USER', 'VENDOR', 'PWD',
) |
#
Fields that should be replaced in debug with '***' |
protected
array
|
$_doDirectPaymentRequest | array(
'ACCT', 'EXPDATE', 'CVV2', 'CURRENCY', 'EMAIL', 'TENDER', 'NOTIFYURL',
'AMT', 'CUSTIP', 'INVNUM',
'CARDISSUE', 'CARDSTART',
'AUTHSTATUS3DS', 'MPIVENDOR3DS', 'CAVV', 'ECI', 'XID',//cardinal centinel params
'TAXAMT', 'FREIGHTAMT'
) |
#
DoDirectPayment request/response map |
protected
array
|
$_doDirectPaymentResponse | array(
'PNREF', 'PPREF', 'CORRELATIONID', 'CVV2MATCH', 'AVSADDR', 'AVSZIP', 'PENDINGREASON'
) |
|
protected
array
|
$_doCaptureRequest | array('ORIGID', 'CAPTURECOMPLETE', 'AMT', 'TENDER', 'NOTE', 'INVNUM') |
#
DoCapture request/response map |
protected
array
|
$_doCaptureResponse | array('PNREF', 'PPREF') |
|
protected
array
|
$_doVoidRequest | array('ORIGID', 'NOTE', 'TENDER') |
#
DoVoid request map |
protected
array
|
$_eachCallRequest | array('PARTNER', 'USER', 'VENDOR', 'PWD', 'BUTTONSOURCE') |
#
Request map for each API call |
protected
array
|
$_refundTransactionRequest | array('ORIGID', 'TENDER') |
#
RefundTransaction request/response map |
protected
array
|
$_refundTransactionResponse | array('PNREF', 'PPREF') |
|
protected
array
|
$_setExpressCheckoutRequest | array(
'TENDER', 'AMT', 'CURRENCY', 'RETURNURL', 'CANCELURL', 'INVNUM',
'PAGESTYLE', 'HDRIMG', 'HDRBORDERCOLOR', 'HDRBACKCOLOR', 'PAYFLOWCOLOR', 'LOCALECODE',
) |
#
SetExpressCheckout request/response map |
protected
array
|
$_setExpressCheckoutResponse | array('REPMSG', 'TOKEN') |
|
protected
array
|
$_getExpressCheckoutDetailsRequest | array('TENDER', 'TOKEN') |
#
GetExpressCheckoutDetails request/response map |
protected
array
|
$_doExpressCheckoutPaymentRequest | array(
'TENDER', 'TOKEN', 'PAYERID', 'AMT', 'CURRENCY', 'CUSTIP', 'BUTTONSOURCE', 'NOTIFYURL',
) |
#
DoExpressCheckoutPayment request/response map |
protected
array
|
$_doExpressCheckoutPaymentResponse | array(
'PNREF', 'PPREF', 'REPMSG', 'AMT', 'PENDINGREASON',
'CVV2MATCH', 'AVSADDR', 'AVSZIP', 'CORRELATIONID'
) |
|
protected
array
|
$_getTransactionDetailsRequest | array('ORIGID', 'TENDER') |
#
GetTransactionDetailsRequest |
protected
array
|
$_getTransactionDetailsResponse | array(
'PAYERID', 'FIRSTNAME', 'LASTNAME', 'TRANSACTIONID',
'PARENTTRANSACTIONID', 'CURRENCYCODE', 'AMT', 'PAYMENTSTATUS'
) |
|
protected
array
|
$_shippingAddressMap | array(
'SHIPTOCOUNTRY' => 'country_id',
'SHIPTOSTATE' => 'region',
'SHIPTOCITY' => 'city',
'SHIPTOSTREET' => 'street',
'SHIPTOSTREET2' => 'street2',
'SHIPTOZIP' => 'postcode',
'SHIPTOPHONENUM' => 'telephone', // does not supported by PaypalUk
) |
#
Map for shipping address import/export (extends billing address mapper) |
protected
array
|
$_billingAddressMap | array(
'BUSINESS' => 'company',
'NOTETEXT' => 'customer_notes',
'EMAIL' => 'email',
'FIRSTNAME' => 'firstname',
'LASTNAME' => 'lastname',
'MIDDLENAME' => 'middlename',
'SALUTATION' => 'prefix',
'SUFFIX' => 'suffix',
'COUNTRYCODE' => 'country_id', // iso-3166 two-character code
'STATE' => 'region',
'CITY' => 'city',
'STREET' => 'street',
'STREET2' => 'street2',
'ZIP' => 'postcode',
'PHONENUM' => 'telephone',
) |
#
Map for billing address import/export |
protected
array
|
$_billingAddressMapRequest | array(
'country_id' => 'COUNTRY',
) |
#
Map for billing address to do request to PayPalUk |
protected
array
|
$_lineItemTotalExportMap | array(
Mage_Paypal_Model_Cart::TOTAL_TAX => 'TAXAMT',
Mage_Paypal_Model_Cart::TOTAL_SHIPPING => 'FREIGHTAMT',
) |
#
Line items export mapping settings |
protected
array
|
$_lineItemExportItemsFormat | array(
'name' => 'L_NAME%d',
'qty' => 'L_QTY%d',
'amount' => 'L_COST%d',
) |
#
Line items export to request mapping settings |
protected
array
|
$_paymentInformationResponse | array(
'PAYERID', 'CORRELATIONID', 'ADDRESSID', 'ADDRESSSTATUS',
'PAYMENTSTATUS', 'PENDINGREASON', 'PROTECTIONELIGIBILITY', 'EMAIL',
) |
#
Payment information response specifically to be collected after some requests |
protected
array
|
$_requiredResponseParams | array(
self::DO_DIRECT_PAYMENT => array('RESULT', 'PNREF', 'PPREF')
) |
#
Required fields in the response |
$_cart,
$_config,
$_lineItemExportItemsFilters,
$_recurringPaymentProfiles
|