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_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

Package: Mage\Paypal
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
Methods summary
public array
# getPaymentInfo( Mage_Payment_Model_Info $payment, boolean $labelValuesOnly = false )

All available payment info getter

All available payment info getter

Parameters

$payment
Mage_Payment_Model_Info
$payment
$labelValuesOnly
boolean
$labelValuesOnly

Returns

array
public array
# getPublicPaymentInfo( Mage_Payment_Model_Info $payment, boolean $labelValuesOnly = false )

Public payment info getter

Public payment info getter

Parameters

$payment
Mage_Payment_Model_Info
$payment
$labelValuesOnly
boolean
$labelValuesOnly

Returns

array
public
# importToPayment( array|Varien_Object|callable $from, Mage_Payment_Model_Info $payment )

Grab data from source and map it into payment

Grab data from source and map it into payment

Parameters

$from
array|Varien_Object|callable
$from
$payment
Mage_Payment_Model_Info
$payment
public array|Varien_Object &
# exportFromPayment( Mage_Payment_Model_Info $payment, array|Varien_Object|callable $to, array $map = null )

Grab data from payment and map it into target

Grab data from payment and map it into target

Parameters

$payment
Mage_Payment_Model_Info
$payment
$to
array|Varien_Object|callable
$to
$map
array
$map

Returns

array|Varien_Object
public static boolean
# isPaymentReviewRequired( Mage_Payment_Model_Info $payment )

Check whether the payment is in review state

Check whether the payment is in review state

Parameters

$payment
Mage_Payment_Model_Info
$payment

Returns

boolean
public static boolean
# isFraudReviewAllowed( Mage_Payment_Model_Info $payment )

Check whether fraud order review detected and can be reviewed

Check whether fraud order review detected and can be reviewed

Parameters

$payment
Mage_Payment_Model_Info
$payment

Returns

boolean
public static boolean
# isPaymentCompleted( Mage_Payment_Model_Info $payment )

Check whether the payment is completed

Check whether the payment is completed

Parameters

$payment
Mage_Payment_Model_Info
$payment

Returns

boolean
public static boolean
# isPaymentSuccessful( Mage_Payment_Model_Info $payment )

Check whether the payment was processed successfully

Check whether the payment was processed successfully

Parameters

$payment
Mage_Payment_Model_Info
$payment

Returns

boolean
public static boolean
# isPaymentFailed( Mage_Payment_Model_Info $payment )

Check whether the payment was processed unsuccessfully or failed

Check whether the payment was processed unsuccessfully or failed

Parameters

$payment
Mage_Payment_Model_Info
$payment

Returns

boolean
public static string
# explainPendingReason( string $code )

Explain pending payment reason code

Explain pending payment reason code

Parameters

$code
string
$code

Returns

string

Link

https://cms.paypal.com/us/cgi-bin/?&cmd=_render-content&content_ID=developer/e_howto_html_IPNandPDTVariables
https://cms.paypal.com/us/cgi-bin/?&cmd=_render-content&content_ID=developer/e_howto_api_nvp_r_GetTransactionDetails
public static string
# explainReasonCode( mixed $code )

Explain the refund or chargeback reason code

Explain the refund or chargeback reason code

Parameters

$code
mixed
$code

Returns

string

Link

https://cms.paypal.com/us/cgi-bin/?&cmd=_render-content&content_ID=developer/e_howto_html_IPNandPDTVariables
https://cms.paypal.com/us/cgi-bin/?&cmd=_render-content&content_ID=developer/e_howto_api_nvp_r_GetTransactionDetails
public static bool;
# isReversalDisputable( string $code )

Whether a reversal/refund can be disputed with PayPal

Whether a reversal/refund can be disputed with PayPal

Parameters

$code
string
$code

Returns

bool;
protected
# _getFullInfo( array $keys, Mage_Payment_Model_Info $payment, boolean $labelValuesOnly )

Render info item

Render info item

Parameters

$keys
array
$keys
$payment
Mage_Payment_Model_Info
$payment
$labelValuesOnly
boolean
$labelValuesOnly
protected
# _getLabel( string $key )

Render info item labels

Render info item labels

Parameters

$key
string
$key
protected string
# _getValue( string $value, string $key )

Apply a filter upon value getting

Apply a filter upon value getting

Parameters

$value
string
$value
$key
string
$key

Returns

string
protected string
# _getAvsLabel( string $value )

Attempt to convert AVS check result code into label

Attempt to convert AVS check result code into label

Parameters

$value
string
$value

Returns

string

Link

https://cms.paypal.com/us/cgi-bin/?&cmd=_render-content&content_ID=developer/e_howto_api_nvp_AVSResponseCodes
protected string
# _getCvv2Label( string $value )

Attempt to convert CVV2 check result code into label

Attempt to convert CVV2 check result code into label

Parameters

$value
string
$value

Returns

string

Link

https://cms.paypal.com/us/cgi-bin/?&cmd=_render-content&content_ID=developer/e_howto_api_nvp_AVSResponseCodes
private string
# _getCentinelVpasLabel( string $value )

Attempt to convert centinel VPAS result into label

Attempt to convert centinel VPAS result into label

Parameters

$value
string
$value

Returns

string

Link

https://cms.paypal.com/us/cgi-bin/?&cmd=_render-content&content_ID=developer/e_howto_api_nvp_r_DoDirectPayment
private string
# _getCentinelEciLabel( string $value )

Attempt to convert centinel ECI result into label

Attempt to convert centinel ECI result into label

Parameters

$value
string
$value

Returns

string

Link

https://cms.paypal.com/us/cgi-bin/?&cmd=_render-content&content_ID=developer/e_howto_api_nvp_r_DoDirectPayment
protected string
# _getBuyerIdTypeValue( string $code )

Retrieve buyer id type value based on code received from PayPal (Brazil only)

Retrieve buyer id type value based on code received from PayPal (Brazil only)

Parameters

$code
string
$code

Returns

string
Constants summary
string PAYER_ID 'payer_id'
#

Cross-models public exchange keys

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)

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

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'
#
Properties summary
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

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

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

Map of payment information available to customer

protected array $_paymentMapFull array()
#

Rendered payment map cache

Rendered payment map cache

Magento 1.7.0.2 API documentation generated by ApiGen 2.8.0