AuthorizeNetXMLResponse

Base class for the AuthorizeNet ARB & CIM Responses.

package

AuthorizeNet

subpackage

AuthorizeNetXML

Methods

Constructor. Parses the AuthorizeNet response string.

__construct(string $response) 

Arguments

$response

string

The response from the AuthNet server.

Was the transaction successful?

isOk() : bool

Response

bool

Run an xpath query on the cleaned XML response

xpath(string $path) : array

Arguments

$path

string

Response

array

Returns an array of SimpleXMLElement objects or FALSE in case of an error.

Was there an error?

isError() : bool

Response

bool

getErrorMessage

getErrorMessage() : string

Response

string

getRefID

getRefID() : string

Response

string

getResultCode

getResultCode() : string

Response

string

getMessageCode

getMessageCode() : string

Response

string

getMessageText

getMessageText() : string

Response

string

Grabs the contents of a unique element.

_getElementContents($elementName) : string

Arguments

$elementName

Response

string

Properties

xml

xml