Class Mage_Authorizenet_Model_Directpost

Description

Authorize.net DirectPost payment method model.

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

Located in /Authorizenet/Model/Directpost.php (line 34)

Varien_Object
   |
   --Mage_Payment_Model_Method_Abstract
      |
      --Mage_Payment_Model_Method_Cc
         |
         --Mage_Paygate_Model_Authorizenet
            |
            --Mage_Authorizenet_Model_Directpost
Variable Summary
Method Summary
Mage_Paygate_Model_Authorizenet authorize ( $payment, decimal $amount)
bool canRefund ()
bool canVoid ( $payment, Varien_Object $invoicePayment)
Mage_Authorizenet_Model_Directpost capture ( $payment, decimal $amount)
true checkTransId ()
string getCgiUrl ()
string getRelayUrl ([int $storeId = null])
void initialize (string $paymentAction, Varien_Object $stateObject)
void process ( $responseData)
Mage_Authorizenet_Model_Directpost refund ( $payment, decimal $amount)
bool validate ()
void _authOrder ( $order)
void _captureOrder ( $order)
void _declineOrder ( $order, [string $message = ''], [bool $voidPayment = true])
void _fillPaymentByResponse ( $payment)
bool _matchAmount (float $amount)
Variables
mixed $_canAuthorize = true (line 43)

Availability options

  • access: protected

Redefinition of:
Mage_Paygate_Model_Authorizenet::$_canAuthorize
mixed $_canCapture = true (line 44)
  • access: protected

Redefinition of:
Mage_Paygate_Model_Authorizenet::$_canCapture
mixed $_canCapturePartial = false (line 45)
  • access: protected

Redefinition of:
Mage_Paygate_Model_Authorizenet::$_canCapturePartial
mixed $_canRefund = true (line 46)
  • access: protected

Redefinition of:
Mage_Paygate_Model_Authorizenet::$_canRefund
mixed $_canRefundInvoicePartial = true (line 47)
  • access: protected

Redefinition of:
Mage_Paygate_Model_Authorizenet::$_canRefundInvoicePartial
mixed $_canSaveCc = false (line 52)
  • access: protected

Redefinition of:
Mage_Paygate_Model_Authorizenet::$_canSaveCc
mixed $_canUseCheckout = true (line 50)
  • access: protected

Redefinition of:
Mage_Paygate_Model_Authorizenet::$_canUseCheckout
mixed $_canUseForMultishipping = false (line 51)
  • access: protected

Redefinition of:
Mage_Paygate_Model_Authorizenet::$_canUseForMultishipping
mixed $_canUseInternal = true (line 49)
  • access: protected

Redefinition of:
Mage_Paygate_Model_Authorizenet::$_canUseInternal
mixed $_canVoid = true (line 48)
  • access: protected

Redefinition of:
Mage_Paygate_Model_Authorizenet::$_canVoid
mixed $_code = 'authorizenet_directpost' (line 36)
  • access: protected

Redefinition of:
Mage_Paygate_Model_Authorizenet::$_code
mixed $_formBlockType = 'directpost/form' (line 37)
  • access: protected

Redefinition of:
Mage_Paygate_Model_Authorizenet::$_formBlockType
Form block type
mixed $_infoBlockType = 'payment/info' (line 38)
  • access: protected

Redefinition of:
Mage_Paygate_Model_Authorizenet::$_infoBlockType
Info block type
mixed $_isInitializeNeeded = true (line 53)
  • access: protected

Redefinition of:
Mage_Payment_Model_Method_Abstract::$_isInitializeNeeded

Inherited Variables

Inherited from Mage_Paygate_Model_Authorizenet

Mage_Paygate_Model_Authorizenet::$_allowCurrencyCode
Mage_Paygate_Model_Authorizenet::$_centinelFieldMap
Mage_Paygate_Model_Authorizenet::$_debugReplacePrivateDataKeys
Mage_Paygate_Model_Authorizenet::$_isGateway
Mage_Paygate_Model_Authorizenet::$_isGatewayActionsLockedKey
Mage_Paygate_Model_Authorizenet::$_partialAuthorizationChecksumDataKeys
Mage_Paygate_Model_Authorizenet::$_partialAuthorizationChecksumSessionKey
Mage_Paygate_Model_Authorizenet::$_partialAuthorizationLastActionStateSessionKey
Mage_Paygate_Model_Authorizenet::$_realTransactionIdKey
Mage_Paygate_Model_Authorizenet::$_splitTenderIdKey

Inherited from Mage_Payment_Model_Method_Abstract

Mage_Payment_Model_Method_Abstract::$_canCancelInvoice
Mage_Payment_Model_Method_Abstract::$_canCreateBillingAgreement
Mage_Payment_Model_Method_Abstract::$_canFetchTransactionInfo
Mage_Payment_Model_Method_Abstract::$_canManageRecurringProfiles
Mage_Payment_Model_Method_Abstract::$_canOrder
Mage_Payment_Model_Method_Abstract::$_canReviewPayment
Methods
authorize (line 73)

Send authorize request to gateway

  • throws: Mage_Core_Exception
  • access: public
Mage_Paygate_Model_Authorizenet authorize ( $payment, decimal $amount)
  • Varien_Object $payment
  • decimal $amount

Redefinition of:
Mage_Paygate_Model_Authorizenet::authorize()
Send authorize request to gateway
canRefund (line 130)

Check refund availability

  • access: public
bool canRefund ()

Redefinition of:
Mage_Paygate_Model_Authorizenet::canRefund()
Check refund availability
canVoid (line 141)

Check void availability

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

Redefinition of:
Mage_Paygate_Model_Authorizenet::canVoid()
Check void availability
capture (line 86)

Send capture request to gateway

  • throws: Mage_Core_Exception
  • access: public
Mage_Authorizenet_Model_Directpost capture ( $payment, decimal $amount)
  • Varien_Object $payment
  • decimal $amount

Redefinition of:
Mage_Paygate_Model_Authorizenet::capture()
Send capture request to gateway
checkResponseCode (line 469)

Check response code came from authorize.net.

  • return: in case of Approved response
  • throws: Mage_Core_Exception in case of Declined or Error response from Authorize.net
  • access: public
true checkResponseCode ()
checkTransId (line 488)

Check transaction id came from Authorize.net

  • return: in case of right transaction id
  • throws: Mage_Core_Exception in case of bad transaction id.
  • access: public
true checkTransId ()
generateRequestFromOrder (line 356)

Generate request object and fill its fields from Quote or Order object

  • access: public
Mage_Authorizenet_Model_Directpost_Request generateRequestFromOrder ( $order, Mage_Core_Model_Abstract $entity)
getCgiUrl (line 283)

Get CGI url

  • access: public
string getCgiUrl ()
getRelayUrl (line 295)

Return URL on which Authorize.net server will return payment result data in hidden request.

  • access: public
string getRelayUrl ([int $storeId = null])
  • int $storeId
getResponse (line 317)

Return response.

  • access: public
initialize (line 328)

Instantiate state and set it to state object

  • access: public
void initialize (string $paymentAction, Varien_Object $stateObject)
  • string $paymentAction
  • Varien_Object $stateObject

Redefinition of:
Mage_Payment_Model_Method_Abstract::initialize()
Method that will be executed instead of authorize or capture if flag isInitilizeNeeded set to true
process (line 404)

Operate with order using data from $_POST which came from authorize.net by Relay URL.

  • throws: Mage_Core_Exception in case of validation error or order creation error
  • access: public
void process ( $responseData)
  • array $responseData: data from Authorize.net from $_POST
processCreditmemo (line 204)

Set transaction ID into creditmemo for informational purposes

  • access: public

Redefinition of:
Mage_Paygate_Model_Authorizenet::processCreditmemo()
Set transaction ID into creditmemo for informational purposes
processInvoice (line 193)

Set capture transaction ID to invoice for informational purposes

  • access: public

Redefinition of:
Mage_Paygate_Model_Authorizenet::processInvoice()
Mock capture transaction id in invoice
refund (line 218)

Refund the amount Need to decode Last 4 digits for request.

  • throws: Mage_Core_Exception
  • access: public
Mage_Authorizenet_Model_Directpost refund ( $payment, decimal $amount)
  • Varien_Object $payment
  • decimal $amount

Redefinition of:
Mage_Paygate_Model_Authorizenet::refund()
Refund the amount with transaction id
setResponseData (line 374)

Fill response with data.

  • access: public
Mage_Authorizenet_Model_Directpost setResponseData ( $postData)
  • array $postData
validate (line 60)

Do not validate payment form using server methods

  • access: public
bool validate ()

Redefinition of:
Mage_Payment_Model_Method_Cc::validate()
Validate payment method information object
validateResponse (line 386)

Validate response data. Needed in controllers.

  • return: true in case of validation success.
  • throws: Mage_Core_Exception in case of validation error
  • access: public
bool validateResponse ()
void (line 153)

Void the payment through gateway

  • throws: Mage_Core_Exception
  • access: public
  • Varien_Object $payment

Redefinition of:
Mage_Paygate_Model_Authorizenet::void()
Void the payment through gateway
_authOrder (line 515)

Operate with order using information from Authorize.net.

Authorize order or authorize and capture it.

  • access: protected
void _authOrder ( $order)
_captureOrder (line 607)

Capture order's payment using AIM.

  • access: protected
void _captureOrder ( $order)
_declineOrder (line 581)

Register order cancellation. Return money to customer if needed.

  • access: protected
void _declineOrder ( $order, [string $message = ''], [bool $voidPayment = true])
_fillPaymentByResponse (line 449)

Fill payment with credit card data from response from Authorize.net.

  • access: protected
void _fillPaymentByResponse ( $payment)
  • Varien_Object $payment
_getRealParentTransactionId (line 641)

Return additional information`s transaction_id value of parent transaction model

  • access: protected
string _getRealParentTransactionId (Mage_Sales_Model_Order_Payment $payment)
_getRequestModel (line 307)

Return request model for form data building

  • access: protected
_matchAmount (line 504)

Compare amount with amount from the response from Authorize.net.

  • access: protected
bool _matchAmount (float $amount)
  • float $amount
_refund (line 239)

refund the amount with transaction id

  • throws: Mage_Core_Exception
  • access: protected
Mage_Authorizenet_Model_Directpost _refund ( $payment,  $amount)
  • string $payment: Varien_Object object
  • $amount

Inherited Methods

Inherited From Mage_Paygate_Model_Authorizenet

Mage_Paygate_Model_Authorizenet::authorize()
Mage_Paygate_Model_Authorizenet::canCapture()
Mage_Paygate_Model_Authorizenet::cancel()
Mage_Paygate_Model_Authorizenet::cancelPartialAuthorization()
Mage_Paygate_Model_Authorizenet::canRefund()
Mage_Paygate_Model_Authorizenet::canUseForCurrency()
Mage_Paygate_Model_Authorizenet::canVoid()
Mage_Paygate_Model_Authorizenet::capture()
Mage_Paygate_Model_Authorizenet::getAcceptedCurrencyCodes()
Mage_Paygate_Model_Authorizenet::getCardsStorage()
Mage_Paygate_Model_Authorizenet::getPartialAuthorizationLastActionState()
Mage_Paygate_Model_Authorizenet::isPartialAuthorization()
Mage_Paygate_Model_Authorizenet::processCreditmemo()
Mage_Paygate_Model_Authorizenet::processInvoice()
Mage_Paygate_Model_Authorizenet::refund()
Mage_Paygate_Model_Authorizenet::setPartialAuthorizationLastActionState()
Mage_Paygate_Model_Authorizenet::unsetPartialAuthorizationLastActionState()
Mage_Paygate_Model_Authorizenet::void()
Mage_Paygate_Model_Authorizenet::_addTransaction()
Mage_Paygate_Model_Authorizenet::_buildRequest()
Mage_Paygate_Model_Authorizenet::_formatAmount()
Mage_Paygate_Model_Authorizenet::_generateChecksum()
Mage_Paygate_Model_Authorizenet::_getRequest()
Mage_Paygate_Model_Authorizenet::_getSession()
Mage_Paygate_Model_Authorizenet::_initCardsStorage()
Mage_Paygate_Model_Authorizenet::_isGatewayActionsLocked()
Mage_Paygate_Model_Authorizenet::_isPreauthorizeCapture()
Mage_Paygate_Model_Authorizenet::_partialAuthorization()
Mage_Paygate_Model_Authorizenet::_place()
Mage_Paygate_Model_Authorizenet::_postRequest()
Mage_Paygate_Model_Authorizenet::_preauthorizeCapture()
Mage_Paygate_Model_Authorizenet::_preauthorizeCaptureCardTransaction()
Mage_Paygate_Model_Authorizenet::_processFailureMultitransactionAction()
Mage_Paygate_Model_Authorizenet::_processPartialAuthorizationResponse()
Mage_Paygate_Model_Authorizenet::_refundCardTransaction()
Mage_Paygate_Model_Authorizenet::_registerCard()
Mage_Paygate_Model_Authorizenet::_voidCardTransaction()
Mage_Paygate_Model_Authorizenet::_wrapGatewayError()

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

Inherited Constants

Inherited from Mage_Paygate_Model_Authorizenet

Mage_Paygate_Model_Authorizenet::CGI_URL
Mage_Paygate_Model_Authorizenet::ECHECK_ACCT_TYPE_BUSINESS
Mage_Paygate_Model_Authorizenet::ECHECK_ACCT_TYPE_CHECKING
Mage_Paygate_Model_Authorizenet::ECHECK_ACCT_TYPE_SAVINGS
Mage_Paygate_Model_Authorizenet::ECHECK_TRANS_TYPE_CCD
Mage_Paygate_Model_Authorizenet::ECHECK_TRANS_TYPE_PPD
Mage_Paygate_Model_Authorizenet::ECHECK_TRANS_TYPE_TEL
Mage_Paygate_Model_Authorizenet::ECHECK_TRANS_TYPE_WEB
Mage_Paygate_Model_Authorizenet::METHOD_CODE
Mage_Paygate_Model_Authorizenet::PARTIAL_AUTH_ALL_CANCELED
Mage_Paygate_Model_Authorizenet::PARTIAL_AUTH_CARDS_LIMIT
Mage_Paygate_Model_Authorizenet::PARTIAL_AUTH_CARDS_LIMIT_EXCEEDED
Mage_Paygate_Model_Authorizenet::PARTIAL_AUTH_DATA_CHANGED
Mage_Paygate_Model_Authorizenet::PARTIAL_AUTH_LAST_DECLINED
Mage_Paygate_Model_Authorizenet::PARTIAL_AUTH_LAST_SUCCESS
Mage_Paygate_Model_Authorizenet::REQUEST_METHOD_CC
Mage_Paygate_Model_Authorizenet::REQUEST_METHOD_ECHECK
Mage_Paygate_Model_Authorizenet::REQUEST_TYPE_AUTH_CAPTURE
Mage_Paygate_Model_Authorizenet::REQUEST_TYPE_AUTH_ONLY
Mage_Paygate_Model_Authorizenet::REQUEST_TYPE_CAPTURE_ONLY
Mage_Paygate_Model_Authorizenet::REQUEST_TYPE_CREDIT
Mage_Paygate_Model_Authorizenet::REQUEST_TYPE_PRIOR_AUTH_CAPTURE
Mage_Paygate_Model_Authorizenet::REQUEST_TYPE_VOID
Mage_Paygate_Model_Authorizenet::RESPONSE_CODE_APPROVED
Mage_Paygate_Model_Authorizenet::RESPONSE_CODE_DECLINED
Mage_Paygate_Model_Authorizenet::RESPONSE_CODE_ERROR
Mage_Paygate_Model_Authorizenet::RESPONSE_CODE_HELD
Mage_Paygate_Model_Authorizenet::RESPONSE_DELIM_CHAR
Mage_Paygate_Model_Authorizenet::RESPONSE_REASON_CODE_APPROVED
Mage_Paygate_Model_Authorizenet::RESPONSE_REASON_CODE_PARTIAL_APPROVE

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:01:22 +0200 by phpDocumentor 1.4.3