InitializationCommandAttributer
in package
implements
CommandAttributerContract
Uses
CommandAttributeTrait, ReferenceCommandAttributeTrait, TypeCommandAttributeTrait, TokenCommandAttributeTrait, SaveCommandAttributeTrait, AmountCommandAttributeTrait, CurrencyCommandAttributeTrait, BillerCommandAttributeTrait, DescriptionCommandAttributeTrait, TemplateCommandAttributeTrait, LanguageCommandAttributeTrait, CallbackCommandAttributeTrait
Class InitializationCommandAttributer
Represents an implementation of CommandAttributerContract used for initializing commands.
Table of Contents
Interfaces
Properties
- $amount : int
- The payment amount in coins.
- $biller : string
- The name of the biller provided by the acquirer.
- $callback : string
- The webhook URL triggered when the payment status changes.
- $currency : string
- The numeric ISO 4217 currency code.
- $description : string|null
- The payment description for displaying on the card input page.
- $reference : string
- The unique payment (order) ID for future usage.
- $save : bool|null
- Indicates whether to save card data.
- $template : string
- The name of the template for the card input page.
- $token : string|null
- The card's unique token.
Methods
- getAmount() : int
- Get the amount attribute.
- getBiller() : string
- Get the biller name.
- getCallback() : string
- Get the callback attribute.
- getCurrency() : string
- Get the currency attribute.
- getDescription() : string|null
- Get the payment description.
- getReference() : string
- Get the reference attribute.
- getSave() : bool|null
- Get the save attribute.
- getTemplate() : string
- Get the template name.
- getToken() : string|null
- Get the token attribute.
- setAmount() : void
- Set the amount attribute.
- setBiller() : void
- Set the biller name.
- setCallback() : void
- Set the callback attribute.
- setCurrency() : void
- Set the currency attribute.
- setDescription() : void
- Set the payment description.
- setReference() : void
- Set the reference attribute.
- setSave() : void
- Set the save attribute.
- setTemplate() : void
- Set the template name.
- 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
$callback
The webhook URL triggered when the payment status changes.
private
string
$callback
$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).
$description
The payment description for displaying on the card input page.
private
string|null
$description
= null
$reference
The unique payment (order) ID for future usage.
private
string
$reference
$save
Indicates whether to save card data.
private
bool|null
$save
= null
$template
The name of the template for the card input page.
private
string
$template
$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.
getCallback()
Get the callback attribute.
public
getCallback() : string
Return values
string —The webhook URL.
getCurrency()
Get the currency attribute.
public
getCurrency() : string
Return values
string —The numeric ISO 4217 currency code.
getDescription()
Get the payment description.
public
getDescription() : string|null
Return values
string|null —The payment description for displaying on the card input page.
getReference()
Get the reference attribute.
public
getReference() : string
Return values
string —The unique payment (order) ID.
getSave()
Get the save attribute.
public
getSave() : bool|null
Return values
bool|null —Whether to save card data.
getTemplate()
Get the template name.
public
getTemplate() : string
Return values
string —The name of the template for the card input page.
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.
setCallback()
Set the callback attribute.
public
setCallback(string $callback) : void
Parameters
- $callback : string
-
The webhook URL.
Tags
setCurrency()
Set the currency attribute.
public
setCurrency(string $currency) : void
Parameters
- $currency : string
-
The numeric ISO 4217 currency code.
Tags
setDescription()
Set the payment description.
public
setDescription(string $description) : void
Parameters
- $description : string
-
The payment description for displaying on the card input page.
setReference()
Set the reference attribute.
public
setReference(string $reference) : void
Parameters
- $reference : string
-
The unique payment (order) ID.
setSave()
Set the save attribute.
public
setSave(bool $save) : void
Parameters
- $save : bool
-
Whether to save card data.
setTemplate()
Set the template name.
public
setTemplate(string $template) : void
Parameters
- $template : string
-
The name of the template for the card input page.
setToken()
Set the token attribute.
public
setToken(string $token) : void
Parameters
- $token : string
-
The card's unique token.