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_Payflowlink

Payflow Link payment gateway model

Varien_Object
Extended by Mage_Payment_Model_Method_Abstract
Extended by Mage_Payment_Model_Method_Cc
Extended by Mage_Paypal_Model_Payflowpro
Extended by Mage_Paypal_Model_Payflowlink

Direct known subclasses

Mage_Paypal_Model_Payflowadvanced
Package: Mage\Paypal
Category: Mage
Copyright: Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
License: Open Software License (OSL 3.0)
Author: Magento Core Team <core@magentocommerce.com>
Located at code/core/Mage/Paypal/Model/Payflowlink.php
Methods summary
public boolean
# validate( )

Do not validate payment form using server methods

Do not validate payment form using server methods

Returns

boolean

Overrides

Mage_Payment_Model_Method_Cc::validate()
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_Paypal_Model_Payflowpro::isAvailable()
public Mage_Payment_Model_Abstract
# initialize( string $paymentAction, Varien_Object $stateObject )

Instantiate state and set it to state object

Instantiate state and set it to state object

Parameters

$paymentAction
string
$paymentAction
$stateObject
Varien_Object
$stateObject

Returns

Mage_Payment_Model_Abstract

Overrides

Mage_Payment_Model_Method_Abstract::initialize()
public Mage_Mage_Paypal_Model_Payflow_Request
# getResponse( )

Return response model.

Return response model.

Returns

Mage_Mage_Paypal_Model_Payflow_Request
public Mage_Paypal_Model_Payflowlink
# setResponseData( array $postData )

Fill response with data.

Fill response with data.

Parameters

$postData
array
$postData

Returns

Mage_Paypal_Model_Payflowlink
public
# process( array $responseData )

Operate with order using data from $_POST which came from Silent Post Url.

Operate with order using data from $_POST which came from Silent Post Url.

Parameters

$responseData
array
$responseData

Throws

Mage_Core_Exception
in case of validation error or order creation error
protected
# _processOrder( Mage_Sales_Model_Order $order )

Operate with order using information from silent post

Operate with order using information from silent post

Parameters

$order
Mage_Sales_Model_Order
$order
protected string|boolean
# _getFraudMessage( )

Get fraud message from response

Get fraud message from response

Returns

string|boolean
protected Mage_Sales_Model_Order
# _getOrderFromResponse( )

Check response from Payflow gateway.

Check response from Payflow gateway.

Returns

Mage_Sales_Model_Order
in case of validation passed

Throws

Mage_Core_Exception
in other cases
protected Varien_Object
# _buildTokenRequest( Mage_Sales_Model_Order_Payment $payment )

Build request for getting token

Build request for getting token

Parameters

$payment
Mage_Sales_Model_Order_Payment
$payment

Returns

Varien_Object
protected integer
# _getStoreId( )

Get store id from response if exists or default

Get store id from response if exists or default

Returns

integer
protected Mage_Paypal_Model_Payflow_Request
# _buildBasicRequest( Varien_Object $payment )

Return request object with basic information for gateway request

Return request object with basic information for gateway request

Parameters

$payment
Varien_Object
$payment

Returns

Mage_Paypal_Model_Payflow_Request

Overrides

Mage_Paypal_Model_Payflowpro::_buildBasicRequest()
protected string
# _getTrxTokenType( )

Get payment action code

Get payment action code

Returns

string
protected string
# _generateSecureTokenId( )

Return unique value for secure token id

Return unique value for secure token id

Returns

string
protected mixed
# _formatStr( mixed $format, mixed $string )

Format values

Format values

Parameters

$format
mixed
$format
$string
mixed
$string

Returns

mixed
protected
# _processTokenErrors( Varien_Object $response, Mage_Sales_Model_Order_Payment $payment )

If response is failed throw exception Set token data in payment object

If response is failed throw exception Set token data in payment object

Parameters

$response
Varien_Object
$response
$payment
Mage_Sales_Model_Order_Payment
$payment

Throws

Mage_Core_Exception
protected string
# _getSecureSilentPostHash( Mage_Sales_Model_Order_Payment $payment )

Return secure hash value for silent post request

Return secure hash value for silent post request

Parameters

$payment
Mage_Sales_Model_Order_Payment
$payment

Returns

string
protected string
# _generateSecureSilentPostHash( Mage_Sales_Model_Order_Payment $payment )

Generate end return new secure hash value

Generate end return new secure hash value

Parameters

$payment
Mage_Sales_Model_Order_Payment
$payment

Returns

string
public string
# getCallbackController( )

Get callback controller

Get callback controller

Returns

string
protected string
# _getCallbackUrl( string $actionName )

Get callback url

Get callback url

Parameters

$actionName
string
$actionName

Returns

string
Methods inherited from Mage_Paypal_Model_Payflowpro
_applyCountryWorkarounds(), _buildPlaceRequest(), _generateRequestId(), _getTransactionUrl(), _isTransactionUnderReview(), _postRequest(), _processErrors(), _setReferenceTransaction(), authorize(), cancel(), capture(), fetchTransactionInfo(), getConfigPaymentAction(), refund(), void()
Methods inherited from Mage_Payment_Model_Method_Cc
OtherCcType(), _validateExpDate(), assignData(), getCentinelValidationData(), getCentinelValidator(), getIsCentinelValidationEnabled(), getVerificationRegEx(), hasVerification(), prepareSave(), validateCcNum(), validateCcNumOther()
Methods inherited from Mage_Payment_Model_Method_Abstract
__construct(), _debug(), _getHelper(), acceptPayment(), canAuthorize(), canCapture(), canCapturePartial(), canCreateBillingAgreement(), canEdit(), canFetchTransactionInfo(), canManageBillingAgreements(), canManageRecurringProfiles(), canOrder(), canRefund(), canRefundPartialPerInvoice(), canReviewPayment(), canUseCheckout(), canUseForCountry(), canUseForCurrency(), canUseForMultishipping(), canUseInternal(), canVoid(), debugData(), denyPayment(), getCode(), getConfigData(), getDebugFlag(), getFormBlockType(), getInfoBlockType(), getInfoInstance(), getTitle(), isGateway(), isInitializeNeeded(), order(), processBeforeRefund(), processCreditmemo(), processInvoice()
Constants summary
string LAYOUT_TEMPLATE 'minLayout'
#

Default layout template

Default layout template

string TRANSACTION_PAYFLOW_URL 'https://payflowlink.paypal.com/'
#

Gateway request URL

Gateway request URL

string RESPONSE_ERROR_MSG 'Payment error. %s was not found.'
#

Error message

Error message

Constants inherited from Mage_Paypal_Model_Payflowpro
RESPONSE_CODE_APPROVED, RESPONSE_CODE_CAPTURE_ERROR, RESPONSE_CODE_DECLINED, RESPONSE_CODE_DECLINED_BY_FILTER, RESPONSE_CODE_DECLINED_BY_MERCHANT, RESPONSE_CODE_FRAUDSERVICE_FILTER, RESPONSE_CODE_INVALID_AMOUNT, RESPONSE_CODE_VOID_ERROR, TENDER_CC, TRANSACTION_URL, TRANSACTION_URL_TEST_MODE, TRXTYPE_AUTH_ONLY, TRXTYPE_CREDIT, TRXTYPE_DELAYED_CAPTURE, TRXTYPE_DELAYED_INQUIRY, TRXTYPE_DELAYED_VOICE, TRXTYPE_DELAYED_VOID, TRXTYPE_SALE
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 $_callbackController 'payflow'
#

Controller for callback urls

Controller for callback urls

protected array $_responseParamsMappings array( 'firstname' => 'billtofirstname', 'lastname' => 'billtolastname', 'address' => 'billtostreet', 'city' => 'billtocity', 'state' => 'billtostate', 'zip' => 'billtozip', 'country' => 'billtocountry', 'phone' => 'billtophone', 'email' => 'billtoemail', 'nametoship' => 'shiptofirstname', 'addresstoship' => 'shiptostreet', 'citytoship' => 'shiptocity', 'statetoship' => 'shiptostate', 'ziptoship' => 'shiptozip', 'countrytoship' => 'shiptocountry', 'phonetoship' => 'shiptophone', 'emailtoship' => 'shiptoemail', 'faxtoship' => 'shiptofax', 'method' => 'tender', 'cscmatch' => 'cvv2match', 'type' => 'trxtype', )
#

Response params mappings

Response params mappings

protected string $_code Mage_Paypal_Model_Config::METHOD_PAYFLOWLINK
#

Payment method code

Payment method code

protected string $_formBlockType 'paypal/payflow_link_form'
#
protected string $_infoBlockType 'paypal/payflow_link_info'
#
protected boolean $_canUseInternal false
#

Availability options

Availability options

protected boolean $_canUseForMultishipping false
#
protected boolean $_isInitializeNeeded true
#
protected Mage_Paypal_Model_Payflow_Request $_response
#

Request & response model

Request & response model

protected string $_secureSilentPostHashKey 'secure_silent_post_hash'
#

Key for storing secure hash in additional information of payment model

Key for storing secure hash in additional information of payment model

Properties inherited from Mage_Paypal_Model_Payflowpro
$_canAuthorize, $_canCapture, $_canCapturePartial, $_canFetchTransactionInfo, $_canRefund, $_canSaveCc, $_canUseCheckout, $_canVoid, $_centinelFieldMap, $_clientTimeout, $_debugReplacePrivateDataKeys, $_isGateway, $_isProxy
Properties inherited from Mage_Payment_Model_Method_Abstract
$_canCancelInvoice, $_canCreateBillingAgreement, $_canManageRecurringProfiles, $_canOrder, $_canRefundInvoicePartial, $_canReviewPayment
Magento 1.7.0.2 API documentation generated by ApiGen 2.8.0