trait MassAssignable (View source)

Trait MassAssignable

This trait encapsulates the method required to create mass assignment on the ReceiveMoney and SendMoney Properties

Methods

setCustomer(array $data = [])

This function sets the customer data (name, email and msisdn|number|phone)

setAmount(string $amount)

sets the money value (Amount) to be sent or received

setDescription(string $description)

sets a description for the transaction.

setClientReference(string $clientReference)

Set's a reference on the transaction for easy identification and transaction tracking.

setChannel(string $channel)

sets the transaction channel (Mobile Network)

setCallback(array|string $data = [])

This method sets the callbacks for the Hubtel Payments

make(array $data = [])

This method exposes the mass assignment method.

massAssign(array $data = [])

This method is used to mass assign the properties required by the Hubtel ReceiveMoney and SendMoney Api

assignOnSendMoneyInstance($data = [])

No description

assignOnReceiveMoneyInstance($data = [])

No description

Details

abstract MassAssignable setCustomer(array $data = [])

This function sets the customer data (name, email and msisdn|number|phone)

Parameters

array $data Customer data

Return Value

MassAssignable

abstract MassAssignable setAmount(string $amount)

sets the money value (Amount) to be sent or received

Parameters

string $amount

Return Value

MassAssignable

abstract MassAssignable setDescription(string $description)

sets a description for the transaction.

Parameters

string $description

Return Value

MassAssignable

abstract MassAssignable setClientReference(string $clientReference)

Set's a reference on the transaction for easy identification and transaction tracking.

Parameters

string $clientReference

Return Value

MassAssignable

abstract MassAssignable setChannel(string $channel)

sets the transaction channel (Mobile Network)

Parameters

string $channel

Return Value

MassAssignable

abstract MassAssignable setCallback(array|string $data = [])

This method sets the callbacks for the Hubtel Payments

Parameters

array|string $data

Return Value

MassAssignable

MassAssignable make(array $data = [])

This method exposes the mass assignment method.

Parameters

array $data

Return Value

MassAssignable

protected MassAssignable massAssign(array $data = [])

This method is used to mass assign the properties required by the Hubtel ReceiveMoney and SendMoney Api

Parameters

array $data

Return Value

MassAssignable

protected assignOnSendMoneyInstance($data = [])

Parameters

$data

protected assignOnReceiveMoneyInstance($data = [])

Parameters

$data