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_Pro

PayPal Website Payments Pro implementation for payment method instaces This model was created because right now PayPal Direct and PayPal Express payment methods cannot have same abstract

Direct known subclasses

Mage_PaypalUk_Model_Pro
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/Pro.php
Methods summary
public
# setMethod( string $code, integer|null $storeId = null )

Payment method code setter. Also instantiates/updates config

Payment method code setter. Also instantiates/updates config

Parameters

$code
string
$code
$storeId
integer|null
$storeId
public
# setConfig( Mage_Paypal_Model_Config $instace, integer $storeId = null )

Config instance setter

Config instance setter

Parameters

$instace
Mage_Paypal_Model_Config
$instace
$storeId
integer
$storeId
public Mage_Paypal_Model_Config
# getConfig( )

Config instance getter

Config instance getter

Returns

Mage_Paypal_Model_Config
public Mage_Paypal_Model_Api_Nvp
# getApi( )

API instance getter Sets current store id to current config instance and passes it to API

API instance getter Sets current store id to current config instance and passes it to API

Returns

Mage_Paypal_Model_Api_Nvp
public Mage_Paypal_Model_Pro
# resetApi( )

Destroy existing NVP Api object

Destroy existing NVP Api object

Returns

Mage_Paypal_Model_Pro
public Mage_Paypal_Model_Info
# getInfo( )

Instantiate and return info model

Instantiate and return info model

Returns

Mage_Paypal_Model_Info
public Mage_Paypal_Model_Pro
# importPaymentInfo( Varien_Object $from, Mage_Payment_Model_Info $to )

Transfer transaction/payment information from API instance to order payment

Transfer transaction/payment information from API instance to order payment

Parameters

$from
Mage_Paypal_Model_Api_Abstract
$from
$to
Mage_Payment_Model_Info
$to

Returns

Mage_Paypal_Model_Pro
public
# void( Varien_Object $payment )

Void transaction

Void transaction

Parameters

$payment
Varien_Object
$payment
public false|null
# capture( Varien_Object $payment, float $amount )

Attempt to capture payment Will return false if the payment is not supposed to be captured

Attempt to capture payment Will return false if the payment is not supposed to be captured

Parameters

$payment
Varien_Object
$payment
$amount
float
$amount

Returns

false|null
public
# refund( Varien_Object $payment, float $amount )

Refund a capture transaction

Refund a capture transaction

Parameters

$payment
Varien_Object
$payment
$amount
float
$amount
public
# cancel( Varien_Object $payment )

Cancel payment

Cancel payment

Parameters

$payment
Varien_Object
$payment
public boolean
# canReviewPayment( Mage_Payment_Model_Info $payment )

Parameters

$payment
Mage_Sales_Model_Order_Payment
$payment

Returns

boolean
public boolean
# reviewPayment( Mage_Payment_Model_Info $payment, string $action )

Perform the payment review

Perform the payment review

Parameters

$payment
Mage_Payment_Model_Info
$payment
$action
string
$action

Returns

boolean
public array
# fetchTransactionInfo( Mage_Payment_Model_Info $payment, string $transactionId )

Fetch transaction details info

Fetch transaction details info

Parameters

$payment
Mage_Payment_Model_Info
$payment
$transactionId
string
$transactionId

Returns

array
public
# validateRecurringProfile( Mage_Payment_Model_Recurring_Profile $profile )

Validate RP data

Validate RP data

Parameters

$profile
Mage_Payment_Model_Recurring_Profile
$profile

Throws

Mage_Core_Exception
public
# submitRecurringProfile( Mage_Payment_Model_Recurring_Profile $profile, Mage_Payment_Model_Info $paymentInfo )

Submit RP to the gateway

Submit RP to the gateway

Parameters

$profile
Mage_Payment_Model_Recurring_Profile
$profile
$paymentInfo
Mage_Payment_Model_Info
$paymentInfo

Throws

Mage_Core_Exception
public
# getRecurringProfileDetails( string $referenceId, Varien_Object $result )

Fetch RP details

Fetch RP details

Parameters

$referenceId
string
$referenceId
$result
Varien_Object
$result
public
# updateRecurringProfile( Mage_Payment_Model_Recurring_Profile $profile )

Update RP data

Update RP data

Parameters

$profile
Mage_Payment_Model_Recurring_Profile
$profile
public
# updateRecurringProfileStatus( Mage_Payment_Model_Recurring_Profile $profile )

Manage status

Manage status

Parameters

$profile
Mage_Payment_Model_Recurring_Profile
$profile
protected
# _importCaptureResultToPayment( Mage_Paypal_Model_Api_Nvp $api, Mage_Sales_Model_Order_Payment $payment )

Import capture results to payment

Import capture results to payment

Parameters

$api
Mage_Paypal_Model_Api_Nvp
$payment
Mage_Sales_Model_Order_Payment
protected
# _importRefundResultToPayment( Mage_Paypal_Model_Api_Nvp $api, Mage_Sales_Model_Order_Payment $payment, boolean $canRefundMore )

Import refund results to payment

Import refund results to payment

Parameters

$api
Mage_Paypal_Model_Api_Nvp
$payment
Mage_Sales_Model_Order_Payment
$canRefundMore
boolean
$canRefundMore
protected string
# _getParentTransactionId( Varien_Object $payment )

Parent transaction id getter

Parent transaction id getter

Parameters

$payment
Varien_Object
$payment

Returns

string
Constants summary
string PAYMENT_REVIEW_ACCEPT 'accept'
#

Possible payment review actions (for FMF only)

Possible payment review actions (for FMF only)

string PAYMENT_REVIEW_DENY 'deny'
#
Properties summary
protected Mage_Paypal_Model_Config $_config null
#

Config instance

Config instance

protected Mage_Paypal_Model_Api_Nvp $_api null
#

API instance

API instance

protected Mage_Paypal_Model_Info $_infoInstance null
#

PayPal info object

PayPal info object

protected string $_apiType 'paypal/api_nvp'
#

API model type

API model type

protected string $_configType 'paypal/config'
#

Config model type

Config model type

Magento 1.7.0.2 API documentation generated by ApiGen 2.8.0