DirectPaymentCommandAttributer
in package
implements
CommandAttributerContract
Uses
CommandAttributeTrait, ReferenceCommandAttributeTrait, TypeCommandAttributeTrait, TokenCommandAttributeTrait, PanCommandAttributeTrait, ExpiryCommandAttributeTrait, CscCommandAttributeTrait, AmountCommandAttributeTrait, CurrencyCommandAttributeTrait, BillerCommandAttributeTrait
Class DirectPaymentCommandAttributer
Represents an implementation of CommandAttributerContract used for "direct payment" commands.
Table of Contents
Interfaces
Properties
- $amount : int
- The payment amount in coins.
- $biller : string
- The name of the biller provided by the acquirer.
- $csc : string
- The Card Security Code.
- $currency : string
- The numeric ISO 4217 currency code.
- $expiry : string
- $pan : string
- $reference : string
- The unique payment (order) ID for future usage.
- $token : string|null
- The card's unique token.
Methods
- getAmount() : int
- Get the amount attribute.
- getBiller() : string
- Get the biller name.
- getCsc() : string
- Get the Card Security Code.
- getCurrency() : string
- Get the currency attribute.
- getExpiry() : string
- Get the expiry attribute.
- getPan() : string
- Get the PAN (Primary Account Number) attribute.
- getReference() : string
- Get the reference attribute.
- getToken() : string|null
- Get the token attribute.
- setAmount() : void
- Set the amount attribute.
- setBiller() : void
- Set the biller name.
- setCsc() : void
- Set the Card Security Code.
- setCurrency() : void
- Set the currency attribute.
- setExpiry() : void
- Set the expiry attribute.
- setPan() : void
- Set the PAN (Primary Account Number) attribute.
- setReference() : void
- Set the reference attribute.
- setToken() : void
- Set the token attribute.
Properties
$amount
The payment amount in coins.
private
int
$amount
$biller
The name of the biller provided by the acquirer.
private
string
$biller
$csc
The Card Security Code.
private
string
$csc
The Card Security Code.
$currency
The numeric ISO 4217 currency code.
private
string
$currency
= "AZN"
This property represents the currency code used for transactions. It follows the ISO 4217 standard for currency codes. The default value is "AZN" (Azerbaijani Manat).
$expiry
private
string
$expiry
The expiry attribute.
$pan
private
string
$pan
The PAN (Primary Account Number) attribute.
$reference
The unique payment (order) ID for future usage.
private
string
$reference
$token
The card's unique token.
private
string|null
$token
= null
Methods
getAmount()
Get the amount attribute.
public
getAmount() : int
Return values
int —The payment amount in coins.
getBiller()
Get the biller name.
public
getBiller() : string
Return values
string —The name of the biller provided by the acquirer.
getCsc()
Get the Card Security Code.
public
getCsc() : string
Return values
string —The Card Security Code.
getCurrency()
Get the currency attribute.
public
getCurrency() : string
Return values
string —The numeric ISO 4217 currency code.
getExpiry()
Get the expiry attribute.
public
getExpiry() : string
Return values
string —The expiry attribute.
getPan()
Get the PAN (Primary Account Number) attribute.
public
getPan() : string
Return values
string —The PAN.
getReference()
Get the reference attribute.
public
getReference() : string
Return values
string —The unique payment (order) ID.
getToken()
Get the token attribute.
public
getToken() : string|null
Return values
string|null —The card's unique token, or null if not set.
setAmount()
Set the amount attribute.
public
setAmount(int $amount) : void
Parameters
- $amount : int
-
The payment amount in coins.
Tags
setBiller()
Set the biller name.
public
setBiller(string $biller) : void
Parameters
- $biller : string
-
The name of the biller provided by the acquirer.
setCsc()
Set the Card Security Code.
public
setCsc(string $csc) : void
Parameters
- $csc : string
-
The Card Security Code to set.
setCurrency()
Set the currency attribute.
public
setCurrency(string $currency) : void
Parameters
- $currency : string
-
The numeric ISO 4217 currency code.
Tags
setExpiry()
Set the expiry attribute.
public
setExpiry(string $expiry) : void
Parameters
- $expiry : string
-
The expiry attribute to set.
Tags
setPan()
Set the PAN (Primary Account Number) attribute.
public
setPan(string $pan) : void
Parameters
- $pan : string
-
The PAN to set.
setReference()
Set the reference attribute.
public
setReference(string $reference) : void
Parameters
- $reference : string
-
The unique payment (order) ID.
setToken()
Set the token attribute.
public
setToken(string $token) : void
Parameters
- $token : string
-
The card's unique token.