AuthorizeNetTD_Response

Extends \AuthorizeNetXMLResponse

A class to parse a response from the Transaction Details XML API.

package

AuthorizeNet

subpackage

AuthorizeNetTD

Methods

Constructor. Parses the AuthorizeNet response string.

__construct(string $response) 
inherited

Arguments

$response

string

The response from the AuthNet server.

Was the transaction successful?

isOk() : bool
inherited

Response

bool

Run an xpath query on the cleaned XML response

xpath(string $path) : array
inherited

Arguments

$path

string

Response

array

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

Was there an error?

isError() : bool
inherited

Response

bool

getErrorMessage

getErrorMessage() : string
inherited

Response

string

getRefID

getRefID() : string
inherited

Response

string

getResultCode

getResultCode() : string
inherited

Response

string

getMessageCode

getMessageCode() : string
inherited

Response

string

getMessageText

getMessageText() : string
inherited

Response

string

Grabs the contents of a unique element.

_getElementContents($elementName) : string
inherited

Arguments

$elementName

Response

string

Properties

xml

xml
inherited