\AuthorizeNetARB
A class to send a request to the ARB XML API.
Synopsis
class AuthorizeNetARB
extends AuthorizeNetRequest
{
- // constants
- const LIVE_URL = "https://api.authorize.net/xml/v1/request.api";
- const SANDBOX_URL = "https://apitest.authorize.net/xml/v1/request.api";
- // members
- private $_request_type;
- private $_request_payload;
- // Inherited members from AuthorizeNetRequest
- protected $_api_login;
- protected $_transaction_key;
- protected $_post_string;
- public boolean $VERIFY_PEER;
- protected boolean $_sandbox;
- protected boolean $_log_file;
- // methods
- public void setRefId()
- public AuthorizeNetARB_Response createSubscription()
- public AuthorizeNetARB_Response updateSubscription()
- public AuthorizeNetARB_Response getSubscriptionStatus()
- public AuthorizeNetARB_Response cancelSubscription()
- public AuthorizeNetARB_Response getSubscriptionList()
- protected AuthorizeNetARB_Response _handleResponse()
- protected string _getPostUrl()
- protected void _setPostString()
- // Inherited methods from AuthorizeNetRequest
- protected abstract void _setPostString()
- protected abstract void _handleResponse()
- protected abstract void _getPostUrl()
- public void __construct()
- public void setSandbox()
- public void setLogFile()
- public string getPostString()
- protected AuthorizeNetARB_Response _sendRequest()
Hierarchy
Extends
Constants
Name | Value |
---|---|
LIVE_URL | "https://api.authorize.net/xml/v1/request.api" |
SANDBOX_URL | "https://apitest.authorize.net/xml/v1/request.api" |
Members
private
- $_request_payload
- $_request_type
protected
- $_api_login
- $_log_file
- $_post_string
- $_sandbox
- $_transaction_key
public
- $VERIFY_PEER
Methods
protected
- _getPostUrl()
- _handleResponse()
- _setPostString() — Prepare the XML document for posting.
public
- cancelSubscription() — Cancel a subscription
- createSubscription() — Create an ARB subscription
- getSubscriptionList() — Create an ARB subscription
- getSubscriptionStatus() — Get status of a subscription
- setRefId() — Optional. Used if the merchant wants to set a reference ID.
- updateSubscription() — Update an ARB subscription
Inherited from AuthorizeNetRequest
protected
- _getPostUrl() — Get the post url. We need this because until 5.3 you you could not access child constants in a parent class.
- _handleResponse() — Handle the response string
- _sendRequest() — Posts the request to AuthorizeNet & returns response.
- _setPostString() — Set the _post_string
public
- getPostString() — Return the post string.
- setLogFile() — Set a log file.
- setSandbox() — Alter the gateway url.