Payment model
Represents a payment authorization record issued by the API. Can be used to process payment and finally settle orders.
package |
NextEvent\PHPSDK\Model |
---|
__call(string $name, array $args) : mixed
If the source of your model contains, e.g. a property named 'my_property',
you can call getMyProperty()
to retrieve it's value.
string
array
mixed
__construct(array $source)
Parse source data.
Throws |
|
---|
array
The source data as received from the API
get(string $var) : mixed
Should be used, if you expect the model to have custom properties which are not known/covered by the known getters
string
mixed
getAmount() : float
float
getAuthorization() : string
Used for order settlement
string
getCurrency() : string
Returns an alphanumeric currency code according to ISO 4217.
string
getExpires() : \NextEvent\PHPSDK\Model\DateTime
getId() : integer
integer
getReference() : string
This value can be used on documents as it's a human readable identifier of a NextEvent payment transaction.
string
getUUID() : string
Used for order settlement
string
isExpired() : boolean
boolean
isValid() : boolean
boolean
serialize() : string
Implements Serializable interface
string
toArray() : array
array
toLogContext() : array
Implements the LogContextInterface interface
array
toString() : string
string
unserialize( $serialized)
Implements Serializable interface