trait Transactable (View source)

This trait encapsulates the accessor required to create a new transaction instance

Methods

amount(float|number $amount)

This method serves as an entry to a transaction class instane. It creates a new transaction class by first starting with the required amount value of the transaction to be created.

channel(string $channel)

Sets the channel (Mobile Network) (requred by the Hubtel ReceiveMoney|SendMoney Api)

static Transactable
__callStatic(string $method, array $parameters)

Dynamically handle missing Static Api Call to Amount.

__call(string $method, array $parameters)

Dynamically handle missing public method call on Amount.

Details

protected Transactable amount(float|number $amount)

This method serves as an entry to a transaction class instane. It creates a new transaction class by first starting with the required amount value of the transaction to be created.

(required by the Hubtel ReceiveMoney Api)

Parameters

float|number $amount the actual money value of the transaction being created

Return Value

Transactable

Transactable channel(string $channel)

Sets the channel (Mobile Network) (requred by the Hubtel ReceiveMoney|SendMoney Api)

Parameters

string $channel The mobile network channel (example: mtn-gh)

Return Value

Transactable

static Transactable __callStatic(string $method, array $parameters)

Dynamically handle missing Static Api Call to Amount.

Parameters

string $method
array $parameters

Return Value

Transactable

Exceptions

BadMethodCallException

Transactable __call(string $method, array $parameters)

Dynamically handle missing public method call on Amount.

Parameters

string $method
array $parameters

Return Value

Transactable

Exceptions

BadMethodCallException