Class Mage_Paypal_Model_Payflowpro

Description

Payflow Pro payment gateway model

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

Located in /Paypal/Model/Payflowpro.php (line 35)

Varien_Object
   |
   --Mage_Payment_Model_Method_Abstract
      |
      --Mage_Payment_Model_Method_Cc
         |
         --Mage_Paypal_Model_Payflowpro
Direct descendents
Class Description
Mage_Paypal_Model_Payflowlink Payflow Link payment gateway model
Class Constant Summary
Variable Summary
Method Summary
static bool _isTransactionUnderReview ( $status, string $statusCode)
Mage_Paypal_Model_Payflowpro authorize ( $payment,  $amount)
Mage_Paypal_Model_Payflowpro capture ( $payment,  $amount)
array fetchTransactionInfo ( $payment, string $transactionId)
bool isAvailable ([Mage_Sales_Model_Quote $quote = null])
Mage_Paypal_Model_Payflowpro refund ( $payment,  $amount)
void _applyCountryWorkarounds ( $address)
Varien_Object _buildBasicRequest ( $payment)
Varien_Object _buildPlaceRequest ( $payment, float $amount)
string _generateRequestId ()
string _getTransactionUrl ([bool $testMode = null])
Varien_Object _postRequest ( $request)
void _processErrors ( $response)
Variables
mixed $_canAuthorize = true (line 78)
  • access: protected

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

Redefinition of:
Mage_Payment_Model_Method_Abstract::$_canCapture
mixed $_canCapturePartial = false (line 80)
  • access: protected

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

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

Redefinition of:
Mage_Payment_Model_Method_Abstract::$_canRefund
mixed $_canSaveCc = false (line 86)
  • access: protected

Redefinition of:
Mage_Payment_Model_Method_Cc::$_canSaveCc
mixed $_canUseCheckout = true (line 84)
  • access: protected

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

Redefinition of:
Mage_Payment_Model_Method_Abstract::$_canUseForMultishipping

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

Redefinition of:
Mage_Payment_Model_Method_Abstract::$_canUseInternal

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

Redefinition of:
Mage_Payment_Model_Method_Abstract::$_canVoid
string $_centinelFieldMap = array(
'centinel_mpivendor' => 'MPIVENDOR3DS',
'centinel_authstatus' => 'AUTHSTATUS3DS',
'centinel_cavv' => 'CAVV',
'centinel_eci' => 'ECI',
'centinel_xid' => 'XID',
)
(line 107)

Centinel cardinal fields map

  • access: protected
mixed $_clientTimeout = 45 (line 93)

Gateway request timeout

  • access: protected
mixed $_code = Mage_Paypal_Model_Config::METHOD_PAYFLOWPRO (line 72)

Payment method code

  • access: protected

Redefinition of:
Mage_Payment_Model_Method_Abstract::$_code

Redefined in descendants as:
array $_debugReplacePrivateDataKeys = array('user', 'pwd', 'acct', 'expdate', 'cvv2') (line 100)

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

  • access: protected

Redefinition of:
Mage_Payment_Model_Method_Abstract::$_debugReplacePrivateDataKeys
Fields that should be replaced in debug with '***'
mixed $_isGateway = true (line 77)

Availability options

  • access: protected

Redefinition of:
Mage_Payment_Model_Method_Abstract::$_isGateway
Payment Method features
mixed $_isProxy = false (line 87)
  • access: protected

Inherited Variables

Inherited from Mage_Payment_Model_Method_Cc

Mage_Payment_Model_Method_Cc::$_formBlockType
Mage_Payment_Model_Method_Cc::$_infoBlockType

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::$_canRefundInvoicePartial
Mage_Payment_Model_Method_Abstract::$_canReviewPayment
Mage_Payment_Model_Method_Abstract::$_isInitializeNeeded
Methods
static method _isTransactionUnderReview (line 297)

Check whether the transaction is in payment review status

  • access: protected
static bool _isTransactionUnderReview ( $status, string $statusCode)
  • string $statusCode
  • $status
authorize (line 153)

Authorize payment

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

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

Attempt to void the authorization on cancelling

  • access: public
Mage_Paypal_Model_Payflowpro cancel ( $payment)
  • Varien_Object $payment

Redefinition of:
Mage_Payment_Model_Method_Abstract::cancel()
Cancel payment (GoogleCheckout)
capture (line 179)

Capture payment

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

Redefinition of:
Mage_Payment_Model_Method_Abstract::capture()
Capture payment
fetchTransactionInfo (line 268)

Fetch transaction details info

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

Redefinition of:
Mage_Payment_Model_Method_Abstract::fetchTransactionInfo()
Fetch transaction info
getConfigPaymentAction (line 137)

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 121)

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

Redefined in descendants as:
refund (line 246)

Refund capture

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

Redefinition of:
Mage_Payment_Model_Method_Abstract::refund()
Refund money
void (line 212)

Void payment

  • access: public
Mage_Paypal_Model_Payflowpro void ( $payment)

Redefinition of:
Mage_Payment_Model_Method_Abstract::void()
Void payment
_applyCountryWorkarounds (line 485)

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

  • access: protected
void _applyCountryWorkarounds ( $address)
  • Varien_Object $address
_buildBasicRequest (line 442)

Return request object with basic information for gateway request

  • access: protected
Varien_Object _buildBasicRequest ( $payment)

Redefined in descendants as:
_buildPlaceRequest (line 393)

Return request object with information for 'authorization' or 'sale' action

  • access: protected
Varien_Object _buildPlaceRequest ( $payment, float $amount)
_generateRequestId (line 461)

Return unique value for request

  • access: protected
string _generateRequestId ()
_getTransactionUrl (line 311)

Getter for URL to perform Payflow requests, based on test mode by default

  • access: protected
string _getTransactionUrl ([bool $testMode = null])
  • bool $testMode: Ability to specify test mode using
_postRequest (line 326)

Post request to gateway and return response

  • access: protected
Varien_Object _postRequest ( $request)
  • Varien_Object $request
_processErrors (line 471)

If response is failed throw exception

  • throws: Mage_Core_Exception
  • access: protected
void _processErrors ( $response)
  • Varien_Object $response

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
RESPONSE_CODE_APPROVED = 0 (line 62)

Response codes

RESPONSE_CODE_CAPTURE_ERROR = 111 (line 67)
RESPONSE_CODE_DECLINED = 12 (line 64)
RESPONSE_CODE_DECLINED_BY_FILTER = 125 (line 65)
RESPONSE_CODE_DECLINED_BY_MERCHANT = 128 (line 66)
RESPONSE_CODE_FRAUDSERVICE_FILTER = 126 (line 63)
TENDER_CC = 'C' (line 51)

Tender type codes

TRANSACTION_URL = 'https://payflowpro.paypal.com/transaction' (line 56)

Gateway request URLs

TRANSACTION_URL_TEST_MODE = 'https://pilot-payflowpro.paypal.com/transaction' (line 57)
TRXTYPE_AUTH_ONLY = 'A' (line 40)

Transaction action codes

TRXTYPE_CREDIT = 'C' (line 42)
TRXTYPE_DELAYED_CAPTURE = 'D' (line 43)
TRXTYPE_DELAYED_INQUIRY = 'I' (line 46)
TRXTYPE_DELAYED_VOICE = 'F' (line 45)
TRXTYPE_DELAYED_VOID = 'V' (line 44)
TRXTYPE_SALE = 'S' (line 41)

Inherited Constants

Inherited from Mage_Payment_Model_Method_Abstract

Mage_Payment_Model_Method_Abstract::ACTION_AUTHORIZE
Mage_Payment_Model_Method_Abstract::ACTION_AUTHORIZE_CAPTURE
Mage_Payment_Model_Method_Abstract::ACTION_ORDER
Mage_Payment_Model_Method_Abstract::STATUS_APPROVED
Mage_Payment_Model_Method_Abstract::STATUS_DECLINED
Mage_Payment_Model_Method_Abstract::STATUS_ERROR
Mage_Payment_Model_Method_Abstract::STATUS_SUCCESS
Mage_Payment_Model_Method_Abstract::STATUS_UNKNOWN
Mage_Payment_Model_Method_Abstract::STATUS_VOID

Documentation generated on Fri, 11 Feb 2011 17:09:39 +0200 by phpDocumentor 1.4.3