Overview

Packages

  • currencysymbol
  • MAbout
  • Mage
    • Admin
    • Adminhtml
    • AdminNotification
    • Api
    • Api2
    • Authorizenet
    • Backup
    • Bundle
    • Captcha
    • Catalog
    • CatalogIndex
    • CatalogInventory
    • CatalogRule
    • CatalogSearch
    • Centinel
    • Checkout
    • Cms
    • Compiler
    • Connect
    • Contacts
    • Core
    • Cron
    • CurrencySymbol
    • Customer
    • Dataflow
    • Directory
    • DirtectPost
    • Downloadable
    • Eav
    • GiftMessage
    • GoogleAnalytics
    • GoogleBase
    • GoogleCheckout
    • ImportExport
    • Index
    • Install
    • Log
    • Media
    • Newsletter
    • Oauth
    • Page
    • PageCache
    • Paygate
    • Payment
    • Paypal
    • PaypalUk
    • Persistent
    • Poll
    • ProductAlert
    • Rating
    • Reports
    • Review
    • Rss
    • Rule
    • Sales
    • SalesRule
    • Sedfriend
    • Sendfriend
    • Shipping
    • Sitemap
    • Tag
    • Tax
    • Usa
    • Weee
    • Widget
    • Wishlist
    • XmlConnect
  • None
  • Phoenix
    • Moneybookers
  • PHP
  • Zend
    • Date
    • Mime
    • XmlRpc

Classes

  • Mage_Paypal_Adminhtml_Paypal_ReportsController
  • Mage_Paypal_Block_Adminhtml_Settlement_Details
  • Mage_Paypal_Block_Adminhtml_Settlement_Details_Form
  • Mage_Paypal_Block_Adminhtml_Settlement_Report
  • Mage_Paypal_Block_Adminhtml_Settlement_Report_Grid
  • Mage_Paypal_Block_Adminhtml_System_Config_ApiWizard
  • Mage_Paypal_Block_Adminhtml_System_Config_Field_Country
  • Mage_Paypal_Block_Adminhtml_System_Config_Field_Hidden
  • Mage_Paypal_Block_Adminhtml_System_Config_Fieldset_Expanded
  • Mage_Paypal_Block_Adminhtml_System_Config_Fieldset_Group
  • Mage_Paypal_Block_Adminhtml_System_Config_Fieldset_Hint
  • Mage_Paypal_Block_Adminhtml_System_Config_Fieldset_Location
  • Mage_Paypal_Block_Adminhtml_System_Config_Fieldset_Payment
  • Mage_Paypal_Block_Adminhtml_System_Config_Fieldset_Store
  • Mage_Paypal_Block_Adminhtml_System_Config_Payflowlink_Advanced
  • Mage_Paypal_Block_Adminhtml_System_Config_Payflowlink_Info
  • Mage_Paypal_Block_Express_Form
  • Mage_Paypal_Block_Express_Review
  • Mage_Paypal_Block_Express_Review_Billing
  • Mage_Paypal_Block_Express_Review_Details
  • Mage_Paypal_Block_Express_Review_Shipping
  • Mage_Paypal_Block_Express_Shortcut
  • Mage_Paypal_Block_Hosted_Pro_Form
  • Mage_Paypal_Block_Hosted_Pro_Iframe
  • Mage_Paypal_Block_Hosted_Pro_Info
  • Mage_Paypal_Block_Iframe
  • Mage_Paypal_Block_Logo
  • Mage_Paypal_Block_Payflow_Advanced_Form
  • Mage_Paypal_Block_Payflow_Advanced_Iframe
  • Mage_Paypal_Block_Payflow_Advanced_Info
  • Mage_Paypal_Block_Payflow_Link_Form
  • Mage_Paypal_Block_Payflow_Link_Iframe
  • Mage_Paypal_Block_Payflow_Link_Info
  • Mage_Paypal_Block_Payment_Info
  • Mage_Paypal_Block_Standard_Form
  • Mage_Paypal_Block_Standard_Redirect
  • Mage_Paypal_Controller_Express_Abstract
  • Mage_Paypal_ExpressController
  • Mage_Paypal_Helper_Data
  • Mage_Paypal_Helper_Hss
  • Mage_Paypal_HostedproController
  • Mage_Paypal_IpnController
  • Mage_Paypal_Model_Api_Abstract
  • Mage_Paypal_Model_Api_Nvp
  • Mage_Paypal_Model_Api_Standard
  • Mage_Paypal_Model_Cart
  • Mage_Paypal_Model_Cert
  • Mage_Paypal_Model_Config
  • Mage_Paypal_Model_Direct
  • Mage_Paypal_Model_Express
  • Mage_Paypal_Model_Express_Checkout
  • Mage_Paypal_Model_Hostedpro
  • Mage_Paypal_Model_Hostedpro_Request
  • Mage_Paypal_Model_Info
  • Mage_Paypal_Model_Ipn
  • Mage_Paypal_Model_Method_Agreement
  • Mage_Paypal_Model_Mysql4_Cert
  • Mage_Paypal_Model_Mysql4_Report_Settlement
  • Mage_Paypal_Model_Mysql4_Report_Settlement_Row
  • Mage_Paypal_Model_Mysql4_Report_Settlement_Row_Collection
  • Mage_Paypal_Model_Mysql4_Setup
  • Mage_Paypal_Model_Observer
  • Mage_Paypal_Model_Payflow_Request
  • Mage_Paypal_Model_Payflowadvanced
  • Mage_Paypal_Model_Payflowlink
  • Mage_Paypal_Model_Payflowpro
  • Mage_Paypal_Model_Payment_Transaction
  • Mage_Paypal_Model_Pro
  • Mage_Paypal_Model_Report_Settlement
  • Mage_Paypal_Model_Report_Settlement_Row
  • Mage_Paypal_Model_Resource_Cert
  • Mage_Paypal_Model_Resource_Report_Settlement
  • Mage_Paypal_Model_Resource_Report_Settlement_Row
  • Mage_Paypal_Model_Resource_Report_Settlement_Row_Collection
  • Mage_Paypal_Model_Resource_Setup
  • Mage_Paypal_Model_Session
  • Mage_Paypal_Model_Standard
  • Mage_Paypal_Model_System_Config_Backend_Cert
  • Mage_Paypal_Model_System_Config_Backend_Cron
  • Mage_Paypal_Model_System_Config_Backend_MerchantCountry
  • Mage_Paypal_Model_System_Config_Source_BuyerCountry
  • Mage_Paypal_Model_System_Config_Source_FetchingSchedule
  • Mage_Paypal_Model_System_Config_Source_Logo
  • Mage_Paypal_Model_System_Config_Source_MerchantCountry
  • Mage_Paypal_Model_System_Config_Source_PaymentActions
  • Mage_Paypal_Model_System_Config_Source_PaymentActions_Express
  • Mage_Paypal_Model_System_Config_Source_RequireBillingAddress
  • Mage_Paypal_Model_System_Config_Source_UrlMethod
  • Mage_Paypal_PayflowadvancedController
  • Mage_Paypal_PayflowController
  • Mage_Paypal_StandardController

Exceptions

  • Mage_Paypal_Exception
  • Overview
  • Package
  • Class
  • Tree

Class Mage_Paypal_Model_Api_Nvp

NVP API wrappers model

Varien_Object
Extended by Mage_Paypal_Model_Api_Abstract
Extended by Mage_Paypal_Model_Api_Nvp

Direct known subclasses

Mage_PaypalUk_Model_Api_Nvp
Package: Mage\Paypal
Copyright: Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
License: Open Software License (OSL 3.0)
TODO:: move some parts to abstract, don't hesitate to throw exceptions on api calls
Located at code/core/Mage/Paypal/Model/Api/Nvp.php
Methods summary
public string
# getApiEndpoint( )

API endpoint getter

API endpoint getter

Returns

string
public string
# getVersion( )

Return Paypal Api version

Return Paypal Api version

Returns

string
public string
# getBillingAgreementType( )

Retrieve billing agreement type

Retrieve billing agreement type

Returns

string
public
# callSetExpressCheckout( )

SetExpressCheckout call

SetExpressCheckout call

Link

TODO: put together style and giropay settings
public
# callGetExpressCheckoutDetails( )

GetExpressCheckoutDetails call

GetExpressCheckoutDetails call

Link

https://cms.paypal.com/us/cgi-bin/?&cmd=_render-content&content_ID=developer/e_howto_api_nvp_r_GetExpressCheckoutDetails
public
# callDoExpressCheckoutPayment( )

DoExpressCheckout call

DoExpressCheckout call

Link

https://cms.paypal.com/us/cgi-bin/?&cmd=_render-content&content_ID=developer/e_howto_api_nvp_r_DoExpressCheckoutPayment
public
# callDoDirectPayment( )

Process a credit card payment

Process a credit card payment

public
# callDoReferenceTransaction( )

Do Reference Transaction call

Do Reference Transaction call

Link

https://cms.paypal.com/us/cgi-bin/?&cmd=_render-content&content_ID=developer/e_howto_api_nvp_r_DoReferenceTransaction
public boolean
# getIsFraudDetected( )

Check whether the last call was returned with fraud warning

Check whether the last call was returned with fraud warning

Returns

boolean
public
# callDoReauthorization( )

Made additional request to paypal to get autharization id

Made additional request to paypal to get autharization id

public
# callDoCapture( )

DoCapture call

DoCapture call

Link

https://cms.paypal.com/us/cgi-bin/?&cmd=_render-content&content_ID=developer/e_howto_api_nvp_r_DoCapture
public Mage_Paypal_Model_Api_Nvp
# callDoAuthorization( )

DoAuthorization call

DoAuthorization call

Returns

Mage_Paypal_Model_Api_Nvp

Link

https://cms.paypal.com/us/cgi-bin/?&cmd=_render-content&content_ID=developer/e_howto_api_nvp_r_DoAuthorization
public
# callDoVoid( )

DoVoid call

DoVoid call

Link

https://cms.paypal.com/us/cgi-bin/?&cmd=_render-content&content_ID=developer/e_howto_api_nvp_r_DoVoid
public
# callGetTransactionDetails( )

GetTransactionDetails

GetTransactionDetails

Link

https://cms.paypal.com/us/cgi-bin/?&cmd=_render-content&content_ID=developer/e_howto_api_nvp_r_GetTransactionDetails
public
# callRefundTransaction( )

RefundTransaction call

RefundTransaction call

Link

https://cms.paypal.com/us/cgi-bin/?&cmd=_render-content&content_ID=developer/e_howto_api_nvp_r_RefundTransaction
public
# callManagePendingTransactionStatus( )

ManagePendingTransactionStatus

ManagePendingTransactionStatus

Link

https://cms.paypal.com/us/cgi-bin/?&cmd=_render-content&content_ID=developer/e_howto_api_nvp_r_ManagePendingTransactionStatus
public
# callGetPalDetails( )

getPalDetails call

getPalDetails call

Link

https://www.x.com/docs/DOC-1300
https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_api_ECButtonIntegration
public
# callSetCustomerBillingAgreement( )

Set Customer BillingA greement call

Set Customer BillingA greement call

Link

https://cms.paypal.com/us/cgi-bin/?&cmd=_render-content&content_ID=developer/e_howto_api_nvp_r_SetCustomerBillingAgreement
public
# callGetBillingAgreementCustomerDetails( )

Get Billing Agreement Customer Details call

Get Billing Agreement Customer Details call

Link

https://cms.paypal.com/us/cgi-bin/?&cmd=_render-content&content_ID=developer/e_howto_api_nvp_r_GetBillingAgreementCustomerDetails
public
# callCreateBillingAgreement( )

Create Billing Agreement call

Create Billing Agreement call

public
# callUpdateBillingAgreement( )

Billing Agreement Update call

Billing Agreement Update call

public
# callCreateRecurringPaymentsProfile( )

CreateRecurringPaymentsProfile call

CreateRecurringPaymentsProfile call

public
# callManageRecurringPaymentsProfileStatus( )

ManageRecurringPaymentsProfileStatus call

ManageRecurringPaymentsProfileStatus call

public
# callGetRecurringPaymentsProfileDetails( Varien_Object $result )

GetRecurringPaymentsProfileDetails call

GetRecurringPaymentsProfileDetails call

public Varien_Object
# prepareShippingOptionsCallbackAddress( array $request )

Import callback request array into $this public data

Import callback request array into $this public data

Parameters

$request
array
$request

Returns

Varien_Object
public string
# formatShippingOptionsCallback( )

Prepare response for shipping options callback

Prepare response for shipping options callback

Returns

string
protected array
# _addMethodToRequest( string $methodName, array $request )

Add method to request array

Add method to request array

Parameters

$methodName
string
$methodName
$request
array
$request

Returns

array
public array
# call( string $methodName, array $request )

Do the API call

Do the API call

Parameters

$methodName
string
$methodName
$request
array
$request

Returns

array

Throws

Mage_Core_Exception
public Mage_Paypal_Model_Api_Nvp
# setRawResponseNeeded( boolean $flag )

Setter for 'raw response needed' flag

Setter for 'raw response needed' flag

Parameters

$flag
boolean
$flag

Returns

Mage_Paypal_Model_Api_Nvp
protected
# _handleCallErrors( array $response )

Handle logical errors

Handle logical errors

Parameters

$response
array
protected boolean|
# _isCallSuccessful( array $response )

Catch success calls and collect warnings

Catch success calls and collect warnings

Parameters

$response
array

Returns

boolean|
success flag
protected boolean
# _validateResponse( string $method, array $response )

Validate response array.

Validate response array.

Parameters

$method
string
$method
$response
array
$response

Returns

boolean
protected array
# _deformatNVP( string $nvpstr )

Parse an NVP response string into an associative array

Parse an NVP response string into an associative array

Parameters

$nvpstr
string
$nvpstr

Returns

array
protected true|null
# _exportLineItems( array & $request, integer $i = 0 )

NVP doesn't support passing discount total as a separate amount - add it as a line item

NVP doesn't support passing discount total as a separate amount - add it as a line item

Parameters

$request
array
$request
$i
integer
$i

Returns

true|null

Overrides

Mage_Paypal_Model_Api_Abstract::_exportLineItems()
protected
# _exportAddressses( array $data )

Create billing and shipping addresses basing on response data

Create billing and shipping addresses basing on response data

Parameters

$data
array
$data
protected
# _applyStreetAndRegionWorkarounds( Varien_Object $address )

Adopt specified address object to be compatible with Magento

Adopt specified address object to be compatible with Magento

Parameters

$address
Varien_Object
$address
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

Adopt specified request array to be compatible with Paypal Puerto Rico should be as state of USA and not as a country

Parameters

$request
array
$request
protected array
# _importAddresses( array $to )

Prepare request data basing on provided addresses

Prepare request data basing on provided addresses

Parameters

$to
array
$to

Returns

array
protected string
# _filterCcType( string $value )

Filter for credit card type

Filter for credit card type

Parameters

$value
string
$value

Returns

string
protected mixed
# _filterToBool( mixed $value )

Filter for true/false values (converts to boolean)

Filter for true/false values (converts to boolean)

Parameters

$value
mixed
$value

Returns

mixed
protected string
# _filterBillFailedLater( string $value )

Filter for 'AUTOBILLAMT'

Filter for 'AUTOBILLAMT'

Parameters

$value
string
$value

Returns

string
protected string
# _filterPeriodUnit( string $value )

Filter for 'BILLINGPERIOD' and 'TRIALBILLINGPERIOD'

Filter for 'BILLINGPERIOD' and 'TRIALBILLINGPERIOD'

Parameters

$value
string
$value

Returns

string
protected string
# _filterInitialAmountMayFail( string $value )

Filter for 'FAILEDINITAMTACTION'

Filter for 'FAILEDINITAMTACTION'

Parameters

$value
string
$value

Returns

string
protected string
# _filterBillingAgreementStatus( string $value )

Filter for billing agreement status

Filter for billing agreement status

Parameters

$value
string
$value

Returns

string
protected string|null
# _filterPaymentStatusFromNvpToInfo( string $value )

Convert payment status from NVP format to paypal/info model format

Convert payment status from NVP format to paypal/info model format

Parameters

$value
string
$value

Returns

string|null
protected string|null
# _filterPaymentReviewAction( string $value )

Convert payment review action to NVP-compatible value

Convert payment review action to NVP-compatible value

Parameters

$value
string
$value

Returns

string|null
protected string|null
# _filterRecurringProfileActionToNvp( string $value )

Convert RP management action to NVP format

Convert RP management action to NVP format

Parameters

$value
string
$value

Returns

string|null
protected
# _analyzeRecurringProfileStatus( string $value, Varien_Object $result )

Check the obtained RP status in NVP format and specify the profile state

Check the obtained RP status in NVP format and specify the profile state

Parameters

$value
string
$value
$result
Varien_Object
$result
protected string
# _getCaptureCompleteType( )

Return capture type

Return capture type

Returns

string
protected array
# _prepareEachCallRequest( string $methodName )

Return each call request without unused fields in case of Express Checkout Unilateral payments

Return each call request without unused fields in case of Express Checkout Unilateral payments

Parameters

$methodName
string
$methodName Current method name

Returns

array
protected
# _prepareExpressCheckoutCallRequest( &array & $requestFields )

Check the EC request against unilateral payments mode and remove the SUBJECT if needed

Check the EC request against unilateral payments mode and remove the SUBJECT if needed

Parameters

$requestFields
&array
$requestFields
Methods inherited from Mage_Paypal_Model_Api_Abstract
_buildQuery(), _debug(), _exportShippingOptions(), _exportToRequest(), _filterAmount(), _filterBool(), _filterInt(), _filterQty(), _getDataOrConfig(), _importFromResponse(), _importStreetFromAddress(), _lookupRegionCodeFromAddress(), addRecurringPaymentProfiles(), export(), getApiCertificate(), getApiPassword(), getApiSignature(), getApiUsername(), getBuildNotationCode(), getBusinessAccount(), getDebugFlag(), getFraudManagementFiltersEnabled(), getHdrbackcolor(), getHdrbordercolor(), getHdrimg(), getLocaleCode(), getPageStyle(), getPayflowcolor(), getPaymentAction(), getProxyHost(), getProxyPort(), getUseCertAuthentication(), getUseProxy(), import(), setConfigObject(), setPaypalCart()
Constants summary
string DO_DIRECT_PAYMENT 'DoDirectPayment'
#

Paypal methods definition

Paypal methods definition

string DO_CAPTURE 'DoCapture'
#
string DO_AUTHORIZATION 'DoAuthorization'
#
string DO_VOID 'DoVoid'
#
string REFUND_TRANSACTION 'RefundTransaction'
#
string SET_EXPRESS_CHECKOUT 'SetExpressCheckout'
#
string GET_EXPRESS_CHECKOUT_DETAILS 'GetExpressCheckoutDetails'
#
string DO_EXPRESS_CHECKOUT_PAYMENT 'DoExpressCheckoutPayment'
#
string CALLBACK_RESPONSE 'CallbackResponse'
#
string PENDING_TRANSACTION_ACCEPT 'Accept'
#

Paypal ManagePendingTransactionStatus actions

Paypal ManagePendingTransactionStatus actions

string PENDING_TRANSACTION_DENY 'Deny'
#
Properties summary
protected string $_captureTypeComplete 'Complete'
#

Capture types (make authorization close or remain open)

Capture types (make authorization close or remain open)

protected string $_captureTypeNotcomplete 'NotComplete'
#
protected array $_globalMap array( // each call 'VERSION' => 'version', 'USER' => 'api_username', 'PWD' => 'api_password', 'SIGNATURE' => 'api_signature', 'BUTTONSOURCE' => 'build_notation_code', // for Unilateral payments 'SUBJECT' => 'business_account', // commands 'PAYMENTACTION' => 'payment_action', 'RETURNURL' => 'return_url', 'CANCELURL' => 'cancel_url', 'INVNUM' => 'inv_num', 'TOKEN' => 'token', 'CORRELATIONID' => 'correlation_id', 'SOLUTIONTYPE' => 'solution_type', 'GIROPAYCANCELURL' => 'giropay_cancel_url', 'GIROPAYSUCCESSURL' => 'giropay_success_url', 'BANKTXNPENDINGURL' => 'giropay_bank_txn_pending_url', 'IPADDRESS' => 'ip_address', 'NOTIFYURL' => 'notify_url', 'RETURNFMFDETAILS' => 'fraud_management_filters_enabled', 'NOTE' => 'note', 'REFUNDTYPE' => 'refund_type', 'ACTION' => 'action', 'REDIRECTREQUIRED' => 'redirect_required', 'SUCCESSPAGEREDIRECTREQUESTED' => 'redirect_requested', 'REQBILLINGADDRESS' => 'require_billing_address', // style settings 'PAGESTYLE' => 'page_style', 'HDRIMG' => 'hdrimg', 'HDRBORDERCOLOR' => 'hdrbordercolor', 'HDRBACKCOLOR' => 'hdrbackcolor', 'PAYFLOWCOLOR' => 'payflowcolor', 'LOCALECODE' => 'locale_code', 'PAL' => 'pal', // transaction info 'TRANSACTIONID' => 'transaction_id', 'AUTHORIZATIONID' => 'authorization_id', 'REFUNDTRANSACTIONID' => 'refund_transaction_id', 'COMPLETETYPE' => 'complete_type', 'AMT' => 'amount', 'ITEMAMT' => 'subtotal_amount', 'GROSSREFUNDAMT' => 'refunded_amount', // possible mistake, check with API reference // payment/billing info 'CURRENCYCODE' => 'currency_code', 'PAYMENTSTATUS' => 'payment_status', 'PENDINGREASON' => 'pending_reason', 'PROTECTIONELIGIBILITY' => 'protection_eligibility', 'PAYERID' => 'payer_id', 'PAYERSTATUS' => 'payer_status', 'ADDRESSID' => 'address_id', 'ADDRESSSTATUS' => 'address_status', 'EMAIL' => 'email', // backwards compatibility 'FIRSTNAME' => 'firstname', 'LASTNAME' => 'lastname', // shipping rate 'SHIPPINGOPTIONNAME' => 'shipping_rate_code', 'NOSHIPPING' => 'suppress_shipping', // paypal direct credit card information 'CREDITCARDTYPE' => 'credit_card_type', 'ACCT' => 'credit_card_number', 'EXPDATE' => 'credit_card_expiration_date', 'CVV2' => 'credit_card_cvv2', 'STARTDATE' => 'maestro_solo_issue_date', // MMYYYY, always six chars, including leading zero 'ISSUENUMBER' => 'maestro_solo_issue_number', 'CVV2MATCH' => 'cvv2_check_result', 'AVSCODE' => 'avs_result', // cardinal centinel 'AUTHSTATUS3DS' => 'centinel_authstatus', 'MPIVENDOR3DS' => 'centinel_mpivendor', 'CAVV' => 'centinel_cavv', 'ECI3DS' => 'centinel_eci', 'XID' => 'centinel_xid', 'VPAS' => 'centinel_vpas_result', 'ECISUBMITTED3DS' => 'centinel_eci_result', // recurring payment profiles //'TOKEN' => 'token', 'SUBSCRIBERNAME' =>'subscriber_name', 'PROFILESTARTDATE' => 'start_datetime', 'PROFILEREFERENCE' => 'internal_reference_id', 'DESC' => 'schedule_description', 'MAXFAILEDPAYMENTS' => 'suspension_threshold', 'AUTOBILLAMT' => 'bill_failed_later', 'BILLINGPERIOD' => 'period_unit', 'BILLINGFREQUENCY' => 'period_frequency', 'TOTALBILLINGCYCLES' => 'period_max_cycles', //'AMT' => 'billing_amount', // have to use 'amount', see above 'TRIALBILLINGPERIOD' => 'trial_period_unit', 'TRIALBILLINGFREQUENCY' => 'trial_period_frequency', 'TRIALTOTALBILLINGCYCLES' => 'trial_period_max_cycles', 'TRIALAMT' => 'trial_billing_amount', // 'CURRENCYCODE' => 'currency_code', 'SHIPPINGAMT' => 'shipping_amount', 'TAXAMT' => 'tax_amount', 'INITAMT' => 'init_amount', 'FAILEDINITAMTACTION' => 'init_may_fail', 'PROFILEID' => 'recurring_profile_id', 'PROFILESTATUS' => 'recurring_profile_status', 'STATUS' => 'status', //Next two fields are used for Brazil only 'TAXID' => 'buyer_tax_id', 'TAXIDTYPE' => 'buyer_tax_id_type', 'BILLINGAGREEMENTID' => 'billing_agreement_id', 'REFERENCEID' => 'reference_id', 'BILLINGAGREEMENTSTATUS' => 'billing_agreement_status', 'BILLINGTYPE' => 'billing_type', 'SREET' => 'street', 'CITY' => 'city', 'STATE' => 'state', 'COUNTRYCODE' => 'countrycode', 'ZIP' => 'zip', 'PAYERBUSINESS' => 'payer_business', )
#

Global public interface map

Global public interface map

protected array $_exportToRequestFilters array( 'AMT' => '_filterAmount', 'ITEMAMT' => '_filterAmount', 'TRIALAMT' => '_filterAmount', 'SHIPPINGAMT' => '_filterAmount', 'TAXAMT' => '_filterAmount', 'INITAMT' => '_filterAmount', 'CREDITCARDTYPE' => '_filterCcType', // 'PROFILESTARTDATE' => '_filterToPaypalDate', 'AUTOBILLAMT' => '_filterBillFailedLater', 'BILLINGPERIOD' => '_filterPeriodUnit', 'TRIALBILLINGPERIOD' => '_filterPeriodUnit', 'FAILEDINITAMTACTION' => '_filterInitialAmountMayFail', 'BILLINGAGREEMENTSTATUS' => '_filterBillingAgreementStatus', 'NOSHIPPING' => '_filterInt', )
#

Filter callbacks for preparing internal amounts to NVP request

Filter callbacks for preparing internal amounts to NVP request

protected array $_importFromRequestFilters array( 'REDIRECTREQUIRED' => '_filterToBool', 'SUCCESSPAGEREDIRECTREQUESTED' => '_filterToBool', 'PAYMENTSTATUS' => '_filterPaymentStatusFromNvpToInfo', )
#

Filter callbacks for importing API result to $this data

Filter callbacks for importing API result to $this data

protected array $_eachCallRequest array('VERSION', 'USER', 'PWD', 'SIGNATURE', 'BUTTONSOURCE',)
#

Request map for each API call

Request map for each API call

protected array $_setExpressCheckoutRequest array( 'PAYMENTACTION', 'AMT', 'CURRENCYCODE', 'RETURNURL', 'CANCELURL', 'INVNUM', 'SOLUTIONTYPE', 'NOSHIPPING', 'GIROPAYCANCELURL', 'GIROPAYSUCCESSURL', 'BANKTXNPENDINGURL', 'PAGESTYLE', 'HDRIMG', 'HDRBORDERCOLOR', 'HDRBACKCOLOR', 'PAYFLOWCOLOR', 'LOCALECODE', 'BILLINGTYPE', 'SUBJECT', 'ITEMAMT', 'SHIPPINGAMT', 'TAXAMT', 'REQBILLINGADDRESS', )
#

SetExpressCheckout request/response map

SetExpressCheckout request/response map

protected array $_setExpressCheckoutResponse array('TOKEN')
#
protected array $_getExpressCheckoutDetailsRequest array('TOKEN', 'SUBJECT',)
#

GetExpressCheckoutDetails request/response map

GetExpressCheckoutDetails request/response map

protected array $_doExpressCheckoutPaymentRequest array( 'TOKEN', 'PAYERID', 'PAYMENTACTION', 'AMT', 'CURRENCYCODE', 'IPADDRESS', 'BUTTONSOURCE', 'NOTIFYURL', 'RETURNFMFDETAILS', 'SUBJECT', 'ITEMAMT', 'SHIPPINGAMT', 'TAXAMT', )
#

DoExpressCheckoutPayment request/response map

DoExpressCheckoutPayment request/response map

protected array $_doExpressCheckoutPaymentResponse array( 'TRANSACTIONID', 'AMT', 'PAYMENTSTATUS', 'PENDINGREASON', 'REDIRECTREQUIRED' )
#
protected array $_doDirectPaymentRequest array( 'PAYMENTACTION', 'IPADDRESS', 'RETURNFMFDETAILS', 'AMT', 'CURRENCYCODE', 'INVNUM', 'NOTIFYURL', 'EMAIL', 'ITEMAMT', 'SHIPPINGAMT', 'TAXAMT', 'CREDITCARDTYPE', 'ACCT', 'EXPDATE', 'CVV2', 'STARTDATE', 'ISSUENUMBER', 'AUTHSTATUS3DS', 'MPIVENDOR3DS', 'CAVV', 'ECI3DS', 'XID', )
#

DoDirectPayment request/response map

DoDirectPayment request/response map

protected array $_doDirectPaymentResponse array( 'TRANSACTIONID', 'AMT', 'AVSCODE', 'CVV2MATCH', 'VPAS', 'ECISUBMITTED3DS' )
#
protected array $_doReauthorizationRequest array('AUTHORIZATIONID', 'AMT', 'CURRENCYCODE')
#

DoReauthorization request/response map

DoReauthorization request/response map

protected array $_doReauthorizationResponse array( 'AUTHORIZATIONID', 'PAYMENTSTATUS', 'PENDINGREASON', 'PROTECTIONELIGIBILITY' )
#
protected array $_doCaptureRequest array('AUTHORIZATIONID', 'COMPLETETYPE', 'AMT', 'CURRENCYCODE', 'NOTE', 'INVNUM',)
#

DoCapture request/response map

DoCapture request/response map

protected array $_doCaptureResponse array('TRANSACTIONID', 'CURRENCYCODE', 'AMT', 'PAYMENTSTATUS', 'PENDINGREASON',)
#
protected array $_doAuthorizationRequest array('TRANSACTIONID', 'AMT', 'CURRENCYCODE')
#

DoAuthorization request/response map

DoAuthorization request/response map

protected array $_doAuthorizationResponse array('TRANSACTIONID', 'AMT')
#
protected array $_doVoidRequest array('AUTHORIZATIONID', 'NOTE',)
#

DoVoid request map

DoVoid request map

protected array $_getTransactionDetailsRequest array('TRANSACTIONID')
#

GetTransactionDetailsRequest

GetTransactionDetailsRequest

protected array $_getTransactionDetailsResponse array( 'PAYERID', 'FIRSTNAME', 'LASTNAME', 'TRANSACTIONID', 'PARENTTRANSACTIONID', 'CURRENCYCODE', 'AMT', 'PAYMENTSTATUS', 'PENDINGREASON', )
#
protected array $_refundTransactionRequest array('TRANSACTIONID', 'REFUNDTYPE', 'CURRENCYCODE', 'NOTE',)
#

RefundTransaction request/response map

RefundTransaction request/response map

protected array $_refundTransactionResponse array('REFUNDTRANSACTIONID', 'GROSSREFUNDAMT',)
#
protected array $_managePendingTransactionStatusRequest array('TRANSACTIONID', 'ACTION')
#

ManagePendingTransactionStatus request/response map

ManagePendingTransactionStatus request/response map

protected array $_managePendingTransactionStatusResponse array('TRANSACTIONID', 'STATUS')
#
protected array $_getPalDetailsResponse array('PAL')
#

GetPalDetails response map

GetPalDetails response map

protected array $_createRecurringPaymentsProfileRequest array( 'TOKEN', 'SUBSCRIBERNAME', 'PROFILESTARTDATE', 'PROFILEREFERENCE', 'DESC', 'MAXFAILEDPAYMENTS', 'AUTOBILLAMT', 'BILLINGPERIOD', 'BILLINGFREQUENCY', 'TOTALBILLINGCYCLES', 'AMT', 'TRIALBILLINGPERIOD', 'TRIALBILLINGFREQUENCY', 'TRIALTOTALBILLINGCYCLES', 'TRIALAMT', 'CURRENCYCODE', 'SHIPPINGAMT', 'TAXAMT', 'INITAMT', 'FAILEDINITAMTACTION' )
#

CreateRecurringPaymentsProfile request/response map

CreateRecurringPaymentsProfile request/response map

protected array $_createRecurringPaymentsProfileResponse array( 'PROFILEID', 'PROFILESTATUS' )
#
protected array $_manageRecurringPaymentsProfileStatusRequest array('PROFILEID', 'ACTION')
#

Request/response for ManageRecurringPaymentsProfileStatus map

Request/response for ManageRecurringPaymentsProfileStatus map

protected array $_getRecurringPaymentsProfileDetailsRequest array('PROFILEID')
#

Request/response for GetRecurringPaymentsProfileDetails

Request/response for GetRecurringPaymentsProfileDetails

protected array $_getRecurringPaymentsProfileDetailsResponse array('STATUS', /* TODO: lot of other stuff */)
#
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

Map for billing address import/export

protected array $_billingAddressMapRequest array ()
#

Map for billing address to do request (not response) Merging with $_billingAddressMap

Map for billing address to do request (not response) Merging with $_billingAddressMap

protected array $_shippingAddressMap array( 'SHIPTOCOUNTRYCODE' => 'country_id', 'SHIPTOSTATE' => 'region', 'SHIPTOCITY' => 'city', 'SHIPTOSTREET' => 'street', 'SHIPTOSTREET2' => 'street2', 'SHIPTOZIP' => 'postcode', 'SHIPTOPHONENUM' => 'telephone', // 'SHIPTONAME' will be treated manually in address import/export methods )
#

Map for shipping address import/export (extends billing address mapper)

Map for shipping address import/export (extends billing address mapper)

protected array $_callbackRequestMap array( 'SHIPTOCOUNTRY' => 'country_id', 'SHIPTOSTATE' => 'region', 'SHIPTOCITY' => 'city', 'SHIPTOSTREET' => 'street', 'SHIPTOSTREET2' => 'street2', 'SHIPTOZIP' => 'postcode' )
#

Map for callback request

Map for callback request

protected array $_paymentInformationResponse array( 'PAYERID', 'PAYERSTATUS', 'CORRELATIONID', 'ADDRESSID', 'ADDRESSSTATUS', 'PAYMENTSTATUS', 'PENDINGREASON', 'PROTECTIONELIGIBILITY', 'EMAIL', 'SHIPPINGOPTIONNAME', 'TAXID', 'TAXIDTYPE' )
#

Payment information response specifically to be collected after some requests

Payment information response specifically to be collected after some requests

protected array $_lineItemTotalExportMap array( Mage_Paypal_Model_Cart::TOTAL_SUBTOTAL => 'ITEMAMT', Mage_Paypal_Model_Cart::TOTAL_TAX => 'TAXAMT', Mage_Paypal_Model_Cart::TOTAL_SHIPPING => 'SHIPPINGAMT', )
#

Line items export mapping settings

Line items export mapping settings

protected array $_lineItemExportItemsFormat array( 'id' => 'L_NUMBER%d', 'name' => 'L_NAME%d', 'qty' => 'L_QTY%d', 'amount' => 'L_AMT%d', )
#

Line items export to request mapping settings

Line items export to request mapping settings

protected array $_shippingOptionsExportItemsFormat array( 'is_default' => 'L_SHIPPINGOPTIONISDEFAULT%d', 'amount' => 'L_SHIPPINGOPTIONAMOUNT%d', 'code' => 'L_SHIPPINGOPTIONNAME%d', 'name' => 'L_SHIPPINGOPTIONLABEL%d', 'tax_amount' => 'L_TAXAMT%d', )
#

Shipping options export to request mapping settings

Shipping options export to request mapping settings

protected array $_customerBillingAgreementRequest array('RETURNURL', 'CANCELURL', 'BILLINGTYPE')
#

init Billing Agreement request/response map

init Billing Agreement request/response map

protected array $_customerBillingAgreementResponse array('TOKEN')
#
protected array $_billingAgreementCustomerDetailsRequest array('TOKEN')
#

Billing Agreement details request/response map

Billing Agreement details request/response map

protected array $_billingAgreementCustomerDetailsResponse array('EMAIL', 'PAYERID', 'PAYERSTATUS', 'SHIPTOCOUNTRYCODE', 'PAYERBUSINESS' )
#
protected array $_createBillingAgreementRequest array('TOKEN')
#

Create Billing Agreement request/response map

Create Billing Agreement request/response map

protected array $_createBillingAgreementResponse array('BILLINGAGREEMENTID')
#
protected array $_updateBillingAgreementRequest array( 'REFERENCEID', 'BILLINGAGREEMENTDESCRIPTION', 'BILLINGAGREEMENTSTATUS', 'BILLINGAGREEMENTCUSTOM' )
#

Update Billing Agreement request/response map

Update Billing Agreement request/response map

protected array $_updateBillingAgreementResponse array( 'REFERENCEID', 'BILLINGAGREEMENTDESCRIPTION', 'BILLINGAGREEMENTSTATUS', 'BILLINGAGREEMENTCUSTOM' )
#
protected array $_doReferenceTransactionRequest array('REFERENCEID', 'PAYMENTACTION', 'AMT', 'ITEMAMT', 'SHIPPINGAMT', 'TAXAMT', 'INVNUM', 'NOTIFYURL' )
#

Do Reference Transaction request/response map

Do Reference Transaction request/response map

protected array $_doReferenceTransactionResponse array('BILLINGAGREEMENTID', 'TRANSACTIONID')
#
protected array $_debugReplacePrivateDataKeys array( 'ACCT', 'EXPDATE', 'CVV2', 'CARDISSUE', 'CARDSTART', 'CREDITCARDTYPE', 'USER', 'PWD', 'SIGNATURE' )
#

Fields that should be replaced in debug with '***'

Fields that should be replaced in debug with '***'

protected array $_supportedCcTypes array( 'VI' => 'Visa', 'MC' => 'MasterCard', 'DI' => 'Discover', 'AE' => 'Amex', 'SM' => 'Maestro', 'SO' => 'Solo')
#

Map of credit card types supported by this API

Map of credit card types supported by this API

protected array $_requiredResponseParams array( self::DO_DIRECT_PAYMENT => array('ACK', 'CORRELATIONID', 'AMT') )
#

Required fields in the response

Required fields in the response

protected array $_callWarnings array()
#

Warning codes recollected after each API call

Warning codes recollected after each API call

protected array $_callErrors array()
#

Error codes recollected after each API call

Error codes recollected after each API call

protected boolean $_rawResponseNeeded false
#

Whether to return raw response information after each call

Whether to return raw response information after each call

Properties inherited from Mage_Paypal_Model_Api_Abstract
$_cart, $_config, $_lineItemExportItemsFilters, $_recurringPaymentProfiles
Magento 1.7.0.2 API documentation generated by ApiGen 2.8.0