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_Express

PayPal Express Module

Varien_Object
Extended by Mage_Payment_Model_Method_Abstract
Extended by Mage_Paypal_Model_Express implements Mage_Payment_Model_Recurring_Profile_MethodInterface

Direct known subclasses

Mage_PaypalUk_Model_Express, Mage_XmlConnect_Model_Payment_Method_Paypal_Mecl, Mage_XmlConnect_Model_Payment_Method_Paypal_Mep
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/Express.php
Methods summary
public
# __construct( mixed $params = array() )

Overrides

Mage_Payment_Model_Method_Abstract::__construct()
public
# setStore( Mage_Core_Model_Store|integer $store )

Store setter Also updates store ID in config object

Store setter Also updates store ID in config object

Parameters

$store
Mage_Core_Model_Store|integer
$store
public boolean
# canUseCheckout( )

Can be used in regular checkout

Can be used in regular checkout

Returns

boolean

Overrides

Mage_Payment_Model_Method_Abstract::canUseCheckout()
public boolean
# canUseForCurrency( string $currencyCode )

Whether method is available for specified currency

Whether method is available for specified currency

Parameters

$currencyCode
string
$currencyCode

Returns

boolean

Overrides

Mage_Payment_Model_Method_Abstract::canUseForCurrency()
public string
# getConfigPaymentAction( )

Payment action getter compatible with payment model

Payment action getter compatible with payment model

Returns

string

See

Mage_Sales_Model_Payment::place()

Overrides

Mage_Payment_Model_Method_Abstract::getConfigPaymentAction()
public boolean
# isAvailable( Mage_Sales_Model_Quote $quote = null )

Check whether payment method can be used

Check whether payment method can be used

Parameters

$quote
Mage_Sales_Model_Quote

Returns

boolean

Overrides

Mage_Payment_Model_Method_Abstract::isAvailable()
public mixed
# getConfigData( string $field, integer $storeId = null )

Custom getter for payment configuration

Custom getter for payment configuration

Parameters

$field
string
$field
$storeId
integer
$storeId

Returns

mixed

Overrides

Mage_Payment_Model_Method_Abstract::getConfigData()
public Mage_Paypal_Model_Express
# order( Varien_Object $payment, float $amount )

Order payment

Order payment

Parameters

$payment
Mage_Sales_Model_Order_Payment
$payment
$amount
float
$amount

Returns

Mage_Paypal_Model_Express

Overrides

Mage_Payment_Model_Method_Abstract::order()
public Mage_Paypal_Model_Express
# authorize( Varien_Object $payment, float $amount )

Authorize payment

Authorize payment

Parameters

$payment
Mage_Sales_Model_Order_Payment
$payment
$amount
float
$amount

Returns

Mage_Paypal_Model_Express

Overrides

Mage_Payment_Model_Method_Abstract::authorize()
public Mage_Paypal_Model_Express
# void( Varien_Object $payment )

Void payment

Void payment

Parameters

$payment
Mage_Sales_Model_Order_Payment
$payment

Returns

Mage_Paypal_Model_Express

Overrides

Mage_Payment_Model_Method_Abstract::void()
public Mage_Paypal_Model_Express
# capture( Varien_Object $payment, float $amount )

Capture payment

Capture payment

Parameters

$payment
Mage_Sales_Model_Order_Payment
$payment
$amount
float
$amount

Returns

Mage_Paypal_Model_Express

Overrides

Mage_Payment_Model_Method_Abstract::capture()
public Mage_Paypal_Model_Express
# refund( Varien_Object $payment, float $amount )

Refund capture

Refund capture

Parameters

$payment
Mage_Sales_Model_Order_Payment
$payment
$amount
float
$amount

Returns

Mage_Paypal_Model_Express

Overrides

Mage_Payment_Model_Method_Abstract::refund()
public Mage_Paypal_Model_Express
# cancel( Varien_Object $payment )

Cancel payment

Cancel payment

Parameters

$payment
Mage_Sales_Model_Order_Payment
$payment

Returns

Mage_Paypal_Model_Express

Overrides

Mage_Payment_Model_Method_Abstract::cancel()
public boolean
# canReviewPayment( Mage_Payment_Model_Info $payment )

Whether payment can be reviewed

Whether payment can be reviewed

Parameters

$payment
Mage_Sales_Model_Order_Payment
$payment

Returns

boolean

Overrides

Mage_Payment_Model_Method_Abstract::canReviewPayment()
public boolean
# acceptPayment( Mage_Payment_Model_Info $payment )

Attempt to accept a pending payment

Attempt to accept a pending payment

Parameters

$payment
Mage_Sales_Model_Order_Payment
$payment

Returns

boolean

Throws

Mage_Core_Exception

Overrides

Mage_Payment_Model_Method_Abstract::acceptPayment()
public boolean
# denyPayment( Mage_Payment_Model_Info $payment )

Attempt to deny a pending payment

Attempt to deny a pending payment

Parameters

$payment
Mage_Sales_Model_Order_Payment
$payment

Returns

boolean

Throws

Mage_Core_Exception

Overrides

Mage_Payment_Model_Method_Abstract::denyPayment()
public string
# getCheckoutRedirectUrl( )

Checkout redirect URL getter for onepage checkout (hardcode)

Checkout redirect URL getter for onepage checkout (hardcode)

Returns

string

See

Mage_Checkout_OnepageController::savePaymentAction()
Mage_Sales_Model_Quote_Payment::getCheckoutRedirectUrl()
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

Overrides

Mage_Payment_Model_Method_Abstract::fetchTransactionInfo()
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

Implementation of

Mage_Payment_Model_Recurring_Profile_MethodInterface::validateRecurringProfile()
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

Implementation of

Mage_Payment_Model_Recurring_Profile_MethodInterface::submitRecurringProfile()
public
# getRecurringProfileDetails( string $referenceId, Varien_Object $result )

Fetch RP details

Fetch RP details

Parameters

$referenceId
string
$referenceId
$result
Varien_Object
$result

Implementation of

Mage_Payment_Model_Recurring_Profile_MethodInterface::getRecurringProfileDetails()
public boolean
# canGetRecurringProfileDetails( )

Whether can get recurring profile details

Whether can get recurring profile details

Returns

boolean

Implementation of

Mage_Payment_Model_Recurring_Profile_MethodInterface::canGetRecurringProfileDetails()
public
# updateRecurringProfile( Mage_Payment_Model_Recurring_Profile $profile )

Update RP data

Update RP data

Parameters

$profile
Mage_Payment_Model_Recurring_Profile
$profile

Implementation of

Mage_Payment_Model_Recurring_Profile_MethodInterface::updateRecurringProfile()
public
# updateRecurringProfileStatus( Mage_Payment_Model_Recurring_Profile $profile )

Manage status

Manage status

Parameters

$profile
Mage_Payment_Model_Recurring_Profile
$profile

Implementation of

Mage_Payment_Model_Recurring_Profile_MethodInterface::updateRecurringProfileStatus()
public Mage_Payment_Model_Info
# assignData( mixed $data )

Assign data to info model instance

Assign data to info model instance

Parameters

$data
mixed
$data

Returns

Mage_Payment_Model_Info

Overrides

Mage_Payment_Model_Method_Abstract::assignData()
protected Mage_Paypal_Model_Express
# _placeOrder( Mage_Sales_Model_Order_Payment $payment, float $amount )

Place an order with authorization or capture action

Place an order with authorization or capture action

Parameters

$payment
Mage_Sales_Model_Order_Payment
$payment
$amount
float
$amount

Returns

Mage_Paypal_Model_Express
protected
# _importToPayment( Mage_Paypal_Model_Api_Nvp $api, Mage_Sales_Model_Order_Payment $payment )

Import payment info to payment

Import payment info to payment

Parameters

$api
Mage_Paypal_Model_Api_Nvp
$payment
Mage_Sales_Model_Order_Payment
public boolean
# canVoid( Varien_Object $payment )

Check void availability

Check void availability

Parameters

$payment
Varien_Object
$payment

Returns

boolean

Overrides

Mage_Payment_Model_Method_Abstract::canVoid()
public boolean
# canCapture( )

Check capture availability

Check capture availability

Returns

boolean

Overrides

Mage_Payment_Model_Method_Abstract::canCapture()
protected Mage_Paypal_Model_Api_Abstract
# _callDoAuthorize( integer $amount, Varien_Object $payment, string $parentTransactionId )

Call DoAuthorize

Call DoAuthorize

Parameters

$amount
integer
$amount
$payment
Varien_Object
$payment
$parentTransactionId
string
$parentTransactionId

Returns

Mage_Paypal_Model_Api_Abstract
protected boolean
# _isTransactionExpired( Mage_Sales_Model_Order_Payment_Transaction $transaction, integer $period )

Check transaction for expiration in PST

Check transaction for expiration in PST

Parameters

$transaction
Mage_Sales_Model_Order_Payment_Transaction
$transaction
$period
integer
$period

Returns

boolean
Methods inherited from Mage_Payment_Model_Method_Abstract
_debug(), _getHelper(), canAuthorize(), canCapturePartial(), canCreateBillingAgreement(), canEdit(), canFetchTransactionInfo(), canManageBillingAgreements(), canManageRecurringProfiles(), canOrder(), canRefund(), canRefundPartialPerInvoice(), canUseForCountry(), canUseForMultishipping(), canUseInternal(), debugData(), getCode(), getDebugFlag(), getFormBlockType(), getInfoBlockType(), getInfoInstance(), getTitle(), initialize(), isGateway(), isInitializeNeeded(), prepareSave(), processBeforeRefund(), processCreditmemo(), processInvoice(), validate()
Constants inherited from Mage_Payment_Model_Method_Abstract
ACTION_AUTHORIZE, ACTION_AUTHORIZE_CAPTURE, ACTION_ORDER, STATUS_APPROVED, STATUS_DECLINED, STATUS_ERROR, STATUS_SUCCESS, STATUS_UNKNOWN, STATUS_VOID
Properties summary
protected string $_code Mage_Paypal_Model_Config::METHOD_WPP_EXPRESS
#
protected string $_formBlockType 'paypal/express_form'
#
protected string $_infoBlockType 'paypal/payment_info'
#
protected string $_proType 'paypal/pro'
#

Website Payments Pro instance type

Website Payments Pro instance type

protected boolean $_isGateway false
#

Availability options

Availability options

protected boolean $_canOrder true
#
protected boolean $_canAuthorize true
#
protected boolean $_canCapture true
#
protected boolean $_canCapturePartial true
#
protected boolean $_canRefund true
#
protected boolean $_canRefundInvoicePartial true
#
protected boolean $_canVoid true
#
protected boolean $_canUseInternal false
#
protected boolean $_canUseCheckout true
#
protected boolean $_canUseForMultishipping false
#
protected boolean $_canFetchTransactionInfo true
#
protected boolean $_canCreateBillingAgreement true
#
protected boolean $_canReviewPayment true
#
protected Mage_Paypal_Model_Pro $_pro null
#

Website Payments Pro instance

Website Payments Pro instance

protected string $_isOrderPaymentActionKey 'is_order_action'
#

Payment additional information key for payment action

Payment additional information key for payment action

protected string $_authorizationCountKey 'authorization_count'
#

Payment additional information key for number of used authorizations

Payment additional information key for number of used authorizations

Properties inherited from Mage_Payment_Model_Method_Abstract
$_canCancelInvoice, $_canManageRecurringProfiles, $_debugReplacePrivateDataKeys, $_isInitializeNeeded
Magento 1.7.0.2 API documentation generated by ApiGen 2.8.0