Blesta
  • Package
  • Class
  • Tree
  • Deprecated

Packages

  • blesta
    • app
      • controllers
      • models
    • components
      • areyouahuman
      • auth
        • motp
        • oath
      • delivery
        • interfax
        • postal
          • methods
      • download
      • email
      • events
        • default
      • exchange
        • rates
          • google
            • finance
          • yahoo
            • finance
      • gateway
        • payments
      • gateways
      • invoice
        • delivery
        • templates
          • quickbooks
            • invoice
      • json
      • modules
      • net
        • amazon
          • s3
        • http
        • net
          • geo
            • ip
      • plugins
      • recaptcha
      • reports
        • aging
          • invoices
        • custom
          • report
        • invoice
          • creation
        • tax
          • liability
        • transactions
          • applied
          • received
      • security
      • session
        • cart
      • settingscollection
      • upgrades
        • tasks
      • upload
      • vcard
    • helpers
      • currency
        • format
      • data
        • structure
          • array
          • string
      • text
        • parser
      • widget
        • client
  • minPHP
    • components
      • input
      • record
    • helpers
      • color
      • data
        • structure
      • date
      • form
      • html
      • javascript
      • xml
    • lib
  • None
  • PHP

Classes

  • Gateway
  • Gateways
  • MerchantGateway
  • NonmerchantGateway

Interfaces

  • MerchantAch
  • MerchantAchOffsite
  • MerchantCc
  • MerchantCcOffsite

Class MerchantGateway

Abstract class that all Merchant Gateways must extend

Gateway
Extended by MerchantGateway
Abstract
Package: blesta\components\gateways
Copyright: Copyright (c) 2010, Phillips Data, Inc.
License: The Blesta License Agreement
Link: Blesta
Located at components/gateways/lib/merchant_gateway.php

Methods summary

abstract public boolean
# requiresCustomerPresent( )

Used to determine whether this gateway can be configured for autodebiting accounts

Used to determine whether this gateway can be configured for autodebiting accounts

Returns

boolean
True if the customer must be present (e.g. in the case of credit card customer must enter security code), false otherwise
protected
# httpRequest( string $method, string $url = null, mixed $params = null )

Process a request over HTTP using the supplied method type, url and parameters.

Process a request over HTTP using the supplied method type, url and parameters.

Parameters

$method
string
$method The method type (e.g. GET, POST)
$url
string
$url The URL to post to
$params
mixed
An array of parameters or a URL encoded list of key/value pairs
protected mixed
# getCommonError( string $type )

Fetches an array containing the error response to be set using Input::setErrors()

Fetches an array containing the error response to be set using Input::setErrors()

Parameters

$type
string
$type The type of error to fetch. Values include: - card_number_invalid - card_expired - routing_number_invalid - account_number_invalid - duplicate_transaction - card_not_accepted - invalid_security_code - address_verification_failed - transaction_not_found The transaction was not found on the remote gateway - unsupported The action is not supported by the gateway - general A general error occurred

Returns

mixed
An array containing the error to populate using Input::setErrors(), false if the type does not exist

Methods inherited from Gateway

clientIdFromEmail(), editSettings(), encryptableFields(), errors(), getAuthors(), getCurrencies(), getLogo(), getName(), getSettings(), getSignupUrl(), getVersion(), ifSet(), install(), loadConfig(), log(), makeView(), maskData(), maskDataRecursive(), setCurrency(), setGatewayId(), setMeta(), setStaffId(), uninstall(), upgrade()

Magic methods summary

Properties summary

protected mixed $Http
#

Param

Http
An Http object, used to make HTTP requests

Properties inherited from Gateway

$config

Blesta API documentation generated by ApiGen 2.8.0