\AuthorizeNetCIM
A class to send a request to the CIM XML API.
Synopsis
class AuthorizeNetCIM
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 $_xml;
- private boolean $_refId = false;
- private string $_validationMode = "none";
- private $_extraOptions;
- private array $_transactionTypes = ;
- // 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 AuthorizeNetCIM_Response createCustomerProfile()
- public AuthorizeNetCIM_Response createCustomerPaymentProfile()
- public AuthorizeNetCIM_Response createCustomerShippingAddress()
- public AuthorizeNetCIM_Response createCustomerProfileTransaction()
- public AuthorizeNetCIM_Response deleteCustomerProfile()
- public AuthorizeNetCIM_Response deleteCustomerPaymentProfile()
- public AuthorizeNetCIM_Response deleteCustomerShippingAddress()
- public AuthorizeNetCIM_Response getCustomerProfileIds()
- public AuthorizeNetCIM_Response getCustomerProfile()
- public AuthorizeNetCIM_Response getCustomerPaymentProfile()
- public AuthorizeNetCIM_Response getCustomerShippingAddress()
- public AuthorizeNetCIM_Response updateCustomerProfile()
- public AuthorizeNetCIM_Response updateCustomerPaymentProfile()
- public AuthorizeNetCIM_Response updateCustomerShippingAddress()
- public AuthorizeNetCIM_Response updateSplitTenderGroup()
- public AuthorizeNetCIM_Response validateCustomerPaymentProfile()
- public AuthorizeNetCIM_Response getHostedProfilePageRequest()
- protected string _getPostUrl()
- protected AuthorizeNetCIM_Response _handleResponse()
- protected void _setPostString()
- private void _constructXml()
- private void _addObject()
- private static bool _notEmpty()
- // 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
- $_extraOptions
- $_refId
- $_transactionTypes
- $_validationMode
- $_xml
protected
- $_api_login
- $_log_file
- $_post_string
- $_sandbox
- $_transaction_key
public
- $VERIFY_PEER
Methods
private
- _addObject() — Add an object to an SimpleXMLElement parent element.
- _constructXml() — Start the SimpleXMLElement that will be posted.
- _notEmpty() — Checks whether an array or object contains any values.
protected
- _getPostUrl()
- _handleResponse()
- _setPostString() — Prepare the XML post string.
public
- createCustomerPaymentProfile() — Create a customer payment profile.
- createCustomerProfile() — Create a customer profile.
- createCustomerProfileTransaction() — Create a transaction.
- createCustomerShippingAddress() — Create a shipping address.
- deleteCustomerPaymentProfile() — Delete a payment profile.
- deleteCustomerProfile() — Delete a customer profile.
- deleteCustomerShippingAddress() — Delete a shipping address.
- getCustomerPaymentProfile() — Get a payment profile.
- getCustomerProfile() — Get a customer profile.
- getCustomerProfileIds() — Get all customer profile ids.
- getCustomerShippingAddress() — Get a shipping address.
- getHostedProfilePageRequest() — Get hosted profile page request token
- setRefId() — Optional. Used if the merchant wants to set a reference ID.
- updateCustomerPaymentProfile() — Update a payment profile.
- updateCustomerProfile() — Update a profile.
- updateCustomerShippingAddress() — Update a shipping address.
- updateSplitTenderGroup() — Update the status of an existing order that contains multiple transactions with the same splitTenderId.
- validateCustomerPaymentProfile() — Validate a customer payment profile.
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.