Recurly v3 API

TransactionError extends RecurlyResource

Table of Contents

$array_hints  : mixed
$_category  : mixed
$_code  : mixed
$_decline_code  : mixed
$_fraud_info  : mixed
$_merchant_advice  : mixed
$_message  : mixed
$_object  : mixed
$_response  : mixed
$_three_d_secure_action_token_id  : mixed
$_transaction_id  : mixed
__construct()  : mixed
Constructor
__debugInfo()  : array<string|int, mixed>
Override of the magic method __debugInfo that will only return the relevant attributes of the \Recurly\RecurlyResource
__set()  : void
Guard against setting invalid properties
cast()  : RecurlyResource
Recursively converts a response object into a \Recurly\RecurlyResource.
fromBinary()  : BinaryFile
Converts a binary response into a Recurly BinaryFile
fromEmpty()  : EmptyResource
Returns a \Recurly\EmptyResource for API requests that do not have a response body.
fromResponse()  : RecurlyResource
Converts a Recurly response object into a \Recurly\RecurlyResource.
getCategory()  : string|null
Getter method for the category attribute.
getCode()  : string|null
Getter method for the code attribute.
getDeclineCode()  : string|null
Getter method for the decline_code attribute.
getFraudInfo()  : TransactionFraudInfo|null
Getter method for the fraud_info attribute.
getMerchantAdvice()  : string|null
Getter method for the merchant_advice attribute.
getMessage()  : string|null
Getter method for the message attribute.
getObject()  : string|null
Getter method for the object attribute.
getResponse()  : Response
Getter for the Recurly HTTP Response
getThreeDSecureActionTokenId()  : string|null
Getter method for the three_d_secure_action_token_id attribute.
getTransactionId()  : string|null
Getter method for the transaction_id attribute.
setCategory()  : void
Setter method for the category attribute.
setCode()  : void
Setter method for the code attribute.
setDeclineCode()  : void
Setter method for the decline_code attribute.
setFraudInfo()  : void
Setter method for the fraud_info attribute.
setMerchantAdvice()  : void
Setter method for the merchant_advice attribute.
setMessage()  : void
Setter method for the message attribute.
setObject()  : void
Setter method for the object attribute.
setThreeDSecureActionTokenId()  : void
Setter method for the three_d_secure_action_token_id attribute.
setTransactionId()  : void
Setter method for the transaction_id attribute.
encodeApiKey()  : string
Base64 encodes the API key
getUserAgent()  : string
Generates User-Agent for API requests
hintArrayType()  : string
The hintArrayType method will provide type hinting for setter methods that have array parameters.
resourceClass()  : string
Converts a string into a representation of a Recurly Resource
setResponse()  : void
Setter for the Recurly HTTP Response
setterParamClass()  : string
Uses the Reflection API to determine what \Recurly\RecurlyResource is the expected parameter for the given method.
titleize()  : string
Capitalizes all the words in the $input.

Properties

$_three_d_secure_action_token_id

private mixed $_three_d_secure_action_token_id

Methods

__construct()

Constructor

public final __construct() : mixed
Return values
mixed

__debugInfo()

Override of the magic method __debugInfo that will only return the relevant attributes of the \Recurly\RecurlyResource

public __debugInfo() : array<string|int, mixed>
Tags
codeCoverageIgnore
Return values
array<string|int, mixed>

__set()

Guard against setting invalid properties

public __set(string $key, mixed $value) : void
Parameters
$key : string

The parameter name that is being set

$value : mixed

The parameter value that is being set

Tags
codeCoverageIgnore
Return values
void

cast()

Recursively converts a response object into a \Recurly\RecurlyResource.

public static cast(object $data) : RecurlyResource
Parameters
$data : object

PHP Object containing the decoded JSON

Return values
RecurlyResource

An instance of a Recurly Resource

fromBinary()

Converts a binary response into a Recurly BinaryFile

public static fromBinary(string $data, Response $response) : BinaryFile
Parameters
$data : string

The binary file data

$response : Response

(optional) The Recurly HTTP Response

Return values
BinaryFile

An instance of a Recurly BinaryFile

fromResponse()

Converts a Recurly response object into a \Recurly\RecurlyResource.

public static fromResponse(Response $response[, object $json = null ]) : RecurlyResource
Parameters
$response : Response

The Recurly HTTP Response

$json : object = null

(optional) JSON payload to use instead of the $response's. Primarily used for errors

Return values
RecurlyResource

An instance of a Recurly Resource

getCategory()

Getter method for the category attribute.

public getCategory() : string|null

Category

Return values
string|null

getCode()

Getter method for the code attribute.

public getCode() : string|null

Code

Return values
string|null

getDeclineCode()

Getter method for the decline_code attribute.

public getDeclineCode() : string|null

Decline code

Return values
string|null

getMerchantAdvice()

Getter method for the merchant_advice attribute.

public getMerchantAdvice() : string|null

Merchant message

Return values
string|null

getMessage()

Getter method for the message attribute.

public getMessage() : string|null

Customer message

Return values
string|null

getObject()

Getter method for the object attribute.

public getObject() : string|null

Object type

Return values
string|null

getThreeDSecureActionTokenId()

Getter method for the three_d_secure_action_token_id attribute.

public getThreeDSecureActionTokenId() : string|null

Returned when 3-D Secure authentication is required for a transaction. Pass this value to Recurly.js so it can continue the challenge flow.

Return values
string|null

getTransactionId()

Getter method for the transaction_id attribute.

public getTransactionId() : string|null

Transaction ID

Return values
string|null

setCategory()

Setter method for the category attribute.

public setCategory(string $category) : void
Parameters
$category : string
Return values
void

setCode()

Setter method for the code attribute.

public setCode(string $code) : void
Parameters
$code : string
Return values
void

setDeclineCode()

Setter method for the decline_code attribute.

public setDeclineCode(string $decline_code) : void
Parameters
$decline_code : string
Return values
void

setMerchantAdvice()

Setter method for the merchant_advice attribute.

public setMerchantAdvice(string $merchant_advice) : void
Parameters
$merchant_advice : string
Return values
void

setMessage()

Setter method for the message attribute.

public setMessage(string $message) : void
Parameters
$message : string
Return values
void

setObject()

Setter method for the object attribute.

public setObject(string $object) : void
Parameters
$object : string
Return values
void

setThreeDSecureActionTokenId()

Setter method for the three_d_secure_action_token_id attribute.

public setThreeDSecureActionTokenId(string $three_d_secure_action_token_id) : void
Parameters
$three_d_secure_action_token_id : string
Return values
void

setTransactionId()

Setter method for the transaction_id attribute.

public setTransactionId(string $transaction_id) : void
Parameters
$transaction_id : string
Return values
void

encodeApiKey()

Base64 encodes the API key

protected static encodeApiKey(string $key) : string
Parameters
$key : string

The API key to encode

Return values
string

base64 encoded API key

getUserAgent()

Generates User-Agent for API requests

protected static getUserAgent() : string
Return values
string

Recurly client User-Agent string

hintArrayType()

The hintArrayType method will provide type hinting for setter methods that have array parameters.

protected static hintArrayType(string $key) : string
Parameters
$key : string

The property to get teh type hint for.

Return values
string

The class name of the expected array type.

resourceClass()

Converts a string into a representation of a Recurly Resource

protected static resourceClass(string $type) : string
Parameters
$type : string

A string to convert to a Recurly Resource

Return values
string

The string representation of a Recurly Resource

setResponse()

Setter for the Recurly HTTP Response

protected setResponse(Response $response) : void
Parameters
$response : Response

The Recurly HTTP Response

Return values
void

setterParamClass()

Uses the Reflection API to determine what \Recurly\RecurlyResource is the expected parameter for the given method.

protected static setterParamClass(string $method) : string
Parameters
$method : string

The name of the setter method to find the type hint for

Return values
string

The \Recurly\RecurlyResource that the setter method expects

titleize()

Capitalizes all the words in the $input.

protected static titleize(string $input[, string $prefix = '' ]) : string
Parameters
$input : string

The string to titleize

$prefix : string = ''

(optional) Prefix to add to the beginning of the titleized string. The prefix will not be titleized.

Return values
string

The titleized $input wtih the prepended $prefix

Search results