class LaravelHubtelPayment extends Pay (View source)

class LaravelHubtelPayment.

This class extends the \OVAC\HubtelPayment\Pay::class class and pre-assisgs a few configuration that can be easily swapped and built upon for a seamless integration with a laravel application and the facade exposed by this package.

It is also the main entry class for this package.

Methods

Config
getConfig()

This method returns an instance of the \OVAC\HubtelPayment\Config created with the hubtel client account expected in the Laravel Hubtel Payment congiguration.

Transaction
__call(string $className, array $parameters)

This class dynamically places a call to the OVAC\HubtelPayment\Pay::class and calls the a dynamic static method which in turn returns the class required by the fascade which this package exposes.

Details

Config getConfig()

This method returns an instance of the \OVAC\HubtelPayment\Config created with the hubtel client account expected in the Laravel Hubtel Payment congiguration.

Return Value

Config

Transaction __call(string $className, array $parameters)

This class dynamically places a call to the OVAC\HubtelPayment\Pay::class and calls the a dynamic static method which in turn returns the class required by the fascade which this package exposes.

Parameters

string $className the name of the class that class will call.
array $parameters parameters in the case of mass assignment

Return Value

Transaction