\AuthorizeNetSOAP
A simple wrapper for the SOAP API as well as a helper function to generate a documentation file from the WSDL.
Synopsis
class AuthorizeNetSOAP
extends SoapClient
{
- // constants
- const WSDL_URL = "https://api.authorize.net/soap/v1/Service.asmx?WSDL";
- const LIVE_URL = "https://api.authorize.net/soap/v1/Service.asmx";
- const SANDBOX_URL = "https://apitest.authorize.net/soap/v1/Service.asmx";
- // members
- public $sandbox;
- // methods
- public void __construct()
- public void setSandbox()
- public string getSoapTypes()
- public string getSoapMethods()
- public void saveSoapDocumentation()
- // Inherited methods from SoapClient
- public mixed __call()
- public void __construct()
- public string __doRequest()
- public array __getCookies()
- public array __getFunctions()
- public string __getLastRequest()
- public string __getLastRequestHeaders()
- public string __getLastResponse()
- public string __getLastResponseHeaders()
- public array __getTypes()
- public void __setCookie()
- public string __setLocation()
- public bool __setSoapHeaders()
- public mixed __soapCall()
- public void SoapClient()
Hierarchy
Extends
Tasks
Line | Task |
---|---|
18+ | Make the doc file a usable class. |
Constants
Name | Value |
---|---|
WSDL_URL | "https://api.authorize.net/soap/v1/Service.asmx?WSDL" |
LIVE_URL | "https://api.authorize.net/soap/v1/Service.asmx" |
SANDBOX_URL | "https://apitest.authorize.net/soap/v1/Service.asmx" |
Members
public
- $sandbox
Methods
public
- __construct() — Constructor
- getSoapMethods() — Get all methods as PHP Code.
- getSoapTypes() — Get all types as PHP Code.
- saveSoapDocumentation() — Create a file from the WSDL for reference.
- setSandbox() — Switch between the sandbox or production gateway.
Inherited from SoapClient
public
- SoapClient() — SoapClient constructor
- __call() — Calls a SOAP function (deprecated)
- __doRequest() — Performs a SOAP request
- __getCookies() — Get list of cookies
- __getFunctions() — Returns list of available SOAP functions
- __getLastRequest() — Returns last SOAP request
- __getLastRequestHeaders() — Returns the SOAP headers from the last request
- __getLastResponse() — Returns last SOAP response
- __getLastResponseHeaders() — Returns the SOAP headers from the last response
- __getTypes() — Returns a list of SOAP types
- __setCookie() — The __setCookie purpose
- __setLocation() — Sets the location of the Web service to use
- __setSoapHeaders() — Sets SOAP headers for subsequent calls
- __soapCall() — Calls a SOAP function