Class Mage_Paypal_Model_Direct

Description

PayPal Direct Module

  • author: Magento Core Team <[email protected]>
  • copyright: Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)

Located in /Paypal/Model/Direct.php (line 33)

Varien_Object
   |
   --Mage_Payment_Model_Method_Abstract
      |
      --Mage_Payment_Model_Method_Cc
         |
         --Mage_Paypal_Model_Direct
Direct descendents
Class Description
Mage_Paypal_Model_Hostedpro Website Payments Pro Hosted Solution payment gateway model
Mage_PaypalUk_Model_Direct PayPalUk Direct Module
Variable Summary
Method Summary
Mage_Paypal_Model_Direct __construct ([ $params = array()])
bool acceptPayment ( $payment)
Mage_Paypal_Model_Direct authorize ( $payment,  $amount)
bool canReviewPayment ( $payment)
bool canUseForCurrency (string $currencyCode)
bool canVoid ( $payment)
Mage_Paypal_Model_Direct capture ( $payment,  $amount)
bool denyPayment ( $payment)
array fetchTransactionInfo ( $payment, string $transactionId)
string getAllowedCcTypes ()
mixed getConfigData (string $field, [int $storeId = null])
bool isAvailable ([Mage_Sales_Model_Quote $quote = null])
Mage_Paypal_Model_Direct refund ( $payment,  $amount)
void setStore (Mage_Core_Model_Store|int $store)
string _getFormattedCcExpirationDate (string|int $month, string|int $year)
Mage_Paypal_Model_Direct _placeOrder ( $payment, float $amount)
Variables
mixed $_canAuthorize = true (line 42)
  • access: protected

Redefinition of:
Mage_Payment_Model_Method_Abstract::$_canAuthorize
mixed $_canCapture = true (line 43)
  • access: protected

Redefinition of:
Mage_Payment_Model_Method_Abstract::$_canCapture
mixed $_canCapturePartial = true (line 44)
  • access: protected

Redefinition of:
Mage_Payment_Model_Method_Abstract::$_canCapturePartial
mixed $_canFetchTransactionInfo = true (line 52)
  • access: protected

Redefinition of:
Mage_Payment_Model_Method_Abstract::$_canFetchTransactionInfo
mixed $_canRefund = true (line 45)
  • access: protected

Redefinition of:
Mage_Payment_Model_Method_Abstract::$_canRefund
mixed $_canRefundInvoicePartial = true (line 46)
  • access: protected

Redefinition of:
Mage_Payment_Model_Method_Abstract::$_canRefundInvoicePartial
mixed $_canReviewPayment = true (line 53)
  • access: protected

Redefinition of:
Mage_Payment_Model_Method_Abstract::$_canReviewPayment
mixed $_canSaveCc = false (line 51)
  • access: protected

Redefinition of:
Mage_Payment_Model_Method_Cc::$_canSaveCc

Redefined in descendants as:
mixed $_canUseCheckout = true (line 49)
  • access: protected

Redefinition of:
Mage_Payment_Model_Method_Abstract::$_canUseCheckout
mixed $_canUseForMultishipping = true (line 50)
  • access: protected

Redefinition of:
Mage_Payment_Model_Method_Abstract::$_canUseForMultishipping

Redefined in descendants as:
mixed $_canUseInternal = true (line 48)
  • access: protected

Redefinition of:
Mage_Payment_Model_Method_Abstract::$_canUseInternal

Redefined in descendants as:
mixed $_canVoid = true (line 47)
  • access: protected

Redefinition of:
Mage_Payment_Model_Method_Abstract::$_canVoid
mixed $_code = Mage_Paypal_Model_Config::METHOD_WPP_DIRECT (line 35)
  • access: protected

Redefinition of:
Mage_Payment_Model_Method_Abstract::$_code

Redefined in descendants as:
mixed $_infoBlockType = 'paypal/payment_info' (line 36)
  • access: protected

Redefinition of:
Mage_Payment_Model_Method_Cc::$_infoBlockType

Redefined in descendants as:
mixed $_isGateway = true (line 41)

Availability options

  • access: protected

Redefinition of:
Mage_Payment_Model_Method_Abstract::$_isGateway
Payment Method features
Mage_Paypal_Model_Pro $_pro = null (line 60)

Website Payments Pro instance

  • access: protected
$_proType $_proType = 'paypal/pro' (line 67)

Website Payments Pro instance type

  • var: string
  • access: protected

Redefined in descendants as:

Inherited Variables

Inherited from Mage_Payment_Model_Method_Cc

Mage_Payment_Model_Method_Cc::$_formBlockType

Inherited from Mage_Payment_Model_Method_Abstract

Mage_Payment_Model_Method_Abstract::$_canCancelInvoice
Mage_Payment_Model_Method_Abstract::$_canCreateBillingAgreement
Mage_Payment_Model_Method_Abstract::$_canManageRecurringProfiles
Mage_Payment_Model_Method_Abstract::$_canOrder
Mage_Payment_Model_Method_Abstract::$_debugReplacePrivateDataKeys
Mage_Payment_Model_Method_Abstract::$_isInitializeNeeded
Methods
Constructor __construct (line 69)
  • access: public
Mage_Paypal_Model_Direct __construct ([ $params = array()])
  • $params

Redefinition of:
Mage_Payment_Model_Method_Abstract::__construct()
acceptPayment (line 249)

Attempt to accept a pending payment

  • access: public
bool acceptPayment ( $payment)

Redefinition of:
Mage_Payment_Model_Method_Abstract::acceptPayment()
Attempt to accept a payment that us under review
authorize (line 176)

Authorize payment

  • access: public
Mage_Paypal_Model_Direct authorize ( $payment,  $amount)

Redefinition of:
Mage_Payment_Model_Method_Abstract::authorize()
Authorize
cancel (line 225)

Cancel payment

  • access: public
Mage_Paypal_Model_Direct cancel ( $payment)

Redefinition of:
Mage_Payment_Model_Method_Abstract::cancel()
Cancel payment (GoogleCheckout)
canReviewPayment (line 238)

Whether payment can be reviewed

  • access: public
bool canReviewPayment ( $payment)

Redefinition of:
Mage_Payment_Model_Method_Abstract::canReviewPayment()
Whether this method can accept or deny payment
canUseForCurrency (line 102)

Whether method is available for specified currency

  • access: public
bool canUseForCurrency (string $currencyCode)
  • string $currencyCode

Redefinition of:
Mage_Payment_Model_Method_Abstract::canUseForCurrency()
Check method for processing with base currency
canVoid (line 381)

Check void availability

  • access: public
bool canVoid ( $payment)
  • Varien_Object $payment

Redefinition of:
Mage_Payment_Model_Method_Abstract::canVoid()
Check void availability
capture (line 199)

Capture payment

  • access: public
Mage_Paypal_Model_Direct capture ( $payment,  $amount)

Redefinition of:
Mage_Payment_Model_Method_Abstract::capture()
Capture payment
denyPayment (line 261)

Attempt to deny a pending payment

  • access: public
bool denyPayment ( $payment)

Redefinition of:
Mage_Payment_Model_Method_Abstract::denyPayment()
Attempt to deny a payment that us under review
fetchTransactionInfo (line 288)

Fetch transaction details info

  • access: public
array fetchTransactionInfo ( $payment, string $transactionId)

Redefinition of:
Mage_Payment_Model_Method_Abstract::fetchTransactionInfo()
Fetch transaction info
getAllowedCcTypes (line 123)

Return available CC types for gateway based on merchant country

  • access: public
string getAllowedCcTypes ()

Redefined in descendants as:
getCentinelValidator (line 272)

Set fallback API URL if not defined in configuration

  • access: public
Mage_Centinel_Model_Service getCentinelValidator ()

Redefinition of:
Mage_Payment_Model_Method_Cc::getCentinelValidator()
Instantiate centinel validator model
getConfigData (line 156)

Custom getter for payment configuration

  • access: public
mixed getConfigData (string $field, [int $storeId = null])
  • string $field
  • int $storeId

Redefinition of:
Mage_Payment_Model_Method_Abstract::getConfigData()
Retrieve information from payment configuration
getConfigPaymentAction (line 113)

Payment action getter compatible with payment model

  • see: Mage_Sales_Model_Payment::place()
  • access: public
string getConfigPaymentAction ()

Redefinition of:
Mage_Payment_Model_Method_Abstract::getConfigPaymentAction()
Get config peyment action url Used to universalize payment actions when processing payment place
isAvailable (line 141)

Check whether payment method can be used

  • access: public
bool isAvailable ([Mage_Sales_Model_Quote $quote = null])

Redefinition of:
Mage_Payment_Model_Method_Cc::isAvailable()
Check whether there are CC types set in configuration
refund (line 213)

Refund capture

  • access: public
Mage_Paypal_Model_Direct refund ( $payment,  $amount)

Redefinition of:
Mage_Payment_Model_Method_Abstract::refund()
Refund money
setStore (line 86)

Store setter Also updates store ID in config object

  • access: public
void setStore (Mage_Core_Model_Store|int $store)
void (line 187)

Void payment

  • access: public
Mage_Paypal_Model_Direct void ( $payment)

Redefinition of:
Mage_Payment_Model_Method_Abstract::void()
Void payment
_getFormattedCcExpirationDate (line 358)

Format credit card expiration date based on month and year values Format: mmyyyy

  • access: protected
string _getFormattedCcExpirationDate (string|int $month, string|int $year)
  • string|int $month
  • string|int $year

Redefined in descendants as:
_importResultToPayment (line 369)

Import direct payment results to payment

  • access: protected
void _importResultToPayment (Mage_Paypal_Model_Api_Nvp $api, Mage_Sales_Model_Order_Payment $payment)

Redefined in descendants as:
_placeOrder (line 300)

Place an order with authorization or capture action

  • access: protected
Mage_Paypal_Model_Direct _placeOrder ( $payment, float $amount)

Inherited Methods

Inherited From Mage_Payment_Model_Method_Cc

Mage_Payment_Model_Method_Cc::assignData()
Mage_Payment_Model_Method_Cc::getCentinelValidationData()
Mage_Payment_Model_Method_Cc::getCentinelValidator()
Mage_Payment_Model_Method_Cc::getIsCentinelValidationEnabled()
Mage_Payment_Model_Method_Cc::getVerificationRegEx()
Mage_Payment_Model_Method_Cc::hasVerification()
Mage_Payment_Model_Method_Cc::isAvailable()
Mage_Payment_Model_Method_Cc::OtherCcType()
Mage_Payment_Model_Method_Cc::prepareSave()
Mage_Payment_Model_Method_Cc::validate()
Mage_Payment_Model_Method_Cc::validateCcNum()
Mage_Payment_Model_Method_Cc::validateCcNumOther()
Mage_Payment_Model_Method_Cc::_validateExpDate()

Inherited From Mage_Payment_Model_Method_Abstract

Mage_Payment_Model_Method_Abstract::__construct()
Mage_Payment_Model_Method_Abstract::acceptPayment()
Mage_Payment_Model_Method_Abstract::assignData()
Mage_Payment_Model_Method_Abstract::authorize()
Mage_Payment_Model_Method_Abstract::canAuthorize()
Mage_Payment_Model_Method_Abstract::canCapture()
Mage_Payment_Model_Method_Abstract::canCapturePartial()
Mage_Payment_Model_Method_Abstract::cancel()
Mage_Payment_Model_Method_Abstract::canCreateBillingAgreement()
Mage_Payment_Model_Method_Abstract::canEdit()
Mage_Payment_Model_Method_Abstract::canFetchTransactionInfo()
Mage_Payment_Model_Method_Abstract::canManageBillingAgreements()
Mage_Payment_Model_Method_Abstract::canManageRecurringProfiles()
Mage_Payment_Model_Method_Abstract::canOrder()
Mage_Payment_Model_Method_Abstract::canRefund()
Mage_Payment_Model_Method_Abstract::canRefundPartialPerInvoice()
Mage_Payment_Model_Method_Abstract::canReviewPayment()
Mage_Payment_Model_Method_Abstract::canUseCheckout()
Mage_Payment_Model_Method_Abstract::canUseForCountry()
Mage_Payment_Model_Method_Abstract::canUseForCurrency()
Mage_Payment_Model_Method_Abstract::canUseForMultishipping()
Mage_Payment_Model_Method_Abstract::canUseInternal()
Mage_Payment_Model_Method_Abstract::canVoid()
Mage_Payment_Model_Method_Abstract::capture()
Mage_Payment_Model_Method_Abstract::debugData()
Mage_Payment_Model_Method_Abstract::denyPayment()
Mage_Payment_Model_Method_Abstract::fetchTransactionInfo()
Mage_Payment_Model_Method_Abstract::getCode()
Mage_Payment_Model_Method_Abstract::getConfigData()
Mage_Payment_Model_Method_Abstract::getConfigPaymentAction()
Mage_Payment_Model_Method_Abstract::getDebugFlag()
Mage_Payment_Model_Method_Abstract::getFormBlockType()
Mage_Payment_Model_Method_Abstract::getInfoBlockType()
Mage_Payment_Model_Method_Abstract::getInfoInstance()
Mage_Payment_Model_Method_Abstract::getTitle()
Mage_Payment_Model_Method_Abstract::initialize()
Mage_Payment_Model_Method_Abstract::isAvailable()
Mage_Payment_Model_Method_Abstract::isGateway()
Mage_Payment_Model_Method_Abstract::isInitializeNeeded()
Mage_Payment_Model_Method_Abstract::order()
Mage_Payment_Model_Method_Abstract::prepareSave()
Mage_Payment_Model_Method_Abstract::processBeforeRefund()
Mage_Payment_Model_Method_Abstract::processBeforeVoid()
Mage_Payment_Model_Method_Abstract::processCreditmemo()
Mage_Payment_Model_Method_Abstract::processInvoice()
Mage_Payment_Model_Method_Abstract::refund()
Mage_Payment_Model_Method_Abstract::validate()
Mage_Payment_Model_Method_Abstract::void()
Mage_Payment_Model_Method_Abstract::_debug()
Mage_Payment_Model_Method_Abstract::_getHelper()
Class Constants

Documentation generated on Fri, 11 Feb 2011 17:01:21 +0200 by phpDocumentor 1.4.3