\Pop\PaymentPayment

Payment class

Summary

Methods
Properties
Constants
__construct()
adapter()
send()
isValid()
isTest()
isApproved()
isDeclined()
isError()
getResponse()
getResponseCodes()
getCode()
getResponseCode()
getMessage()
shippingSameAsBilling()
__set()
__get()
__isset()
__unset()
No public properties found
No constants found
No protected methods found
$adapter
$fields
N/A
No private methods found
No private properties found
N/A

Properties

$adapter

$adapter : mixed

Payment adapter

Type

mixed

$fields

$fields : array

Common transaction fields.

These are the common transaction fields that will be normalized to the proper field names by the adapter. You can also add direct adapter-specific fields to the payment transaction object that won't be affected by the field normalization, for example:

(Authorize.net) $payment->x_invoice_num = '12345';

(UsaEPay) $payment->UMinvoice = '12345';

Type

array

Methods

send()

send(boolean  $verifyPeer = true) : void

Send transaction data

Parameters

boolean $verifyPeer

isValid()

isValid() : boolean

Validate transaction data

Returns

boolean

isTest()

isTest() : boolean

Return whether the transaction is in test mode

Returns

boolean

isApproved()

isApproved() : boolean

Return whether the transaction is approved

Returns

boolean

isDeclined()

isDeclined() : boolean

Return whether the transaction is declined

Returns

boolean

isError()

isError() : boolean

Return whether the transaction is an error

Returns

boolean

getResponse()

getResponse() : string

Get raw response

Returns

string

getResponseCodes()

getResponseCodes() : array

Get response codes

Returns

array

getCode()

getCode(string  $key) : string

Get specific response code from a field in the array

Parameters

string $key

Returns

string

getResponseCode()

getResponseCode() : string

Get response code

Returns

string

getMessage()

getMessage() : string

Get response message

Returns

string

shippingSameAsBilling()

shippingSameAsBilling() : \Pop\Payment\Payment

Set the shipping data fields to the same as billing data fields

Returns

\Pop\Payment\Payment

__set()

__set(string  $name, mixed  $value) : void

Set method to set the property to the value of fields[$name].

Parameters

string $name
mixed $value

__get()

__get(string  $name) : mixed

Get method to return the value of fields[$name].

Parameters

string $name

Throws

\Pop\Payment\Exception

Returns

mixed

__isset()

__isset(string  $name) : boolean

Return the isset value of fields[$name].

Parameters

string $name

Returns

boolean

__unset()

__unset(string  $name) : void

Unset fields[$name].

Parameters

string $name