Documentation

DirectPaymentCommandAttributer 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

CommandAttributerContract

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

$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).

Methods

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.

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.

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.

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.


        
On this page

Search results