Pay
class Pay implements ConfigInterface (View source)
Pay Class
This is the main entry class for the OVAC/Hubtel-Payment Package This class is responsible for creating the config instance
Constants
| VERSION |
The package version. |
| CLIENT |
The package Client Name. |
Properties
| protected ConfigInterface | $config | The Config repository instance. |
Methods
Constructor.
Create a new OVAC\HubtelPayment instance.
Returns the Config repository instance.
Get the Merchant Client Account Number from the configuration
Sets the Hubter API Merchant Account Number.
Returns the Hubtel API Merchant Client ID.
Sets the Hubtel API Merchant ID.
Returns the Hubtel API Merchant Client Secret.
Sets the Hubtel API Merchant Client Secret.
Returns the current package version.
Set the current package version
Dynamically handle missing Static Api Classes and Methods.
Dynamically handle missing Api Classes and Methods.
Returns the Api class instance for the given method.
Details
at line 51
void
__construct(string|array $account = null, string $clientId = null, string $clientSecret = null)
Constructor.
at line 77
static Pay
make(string|array $account = null, string $clientId = null, string $clientSecret = null)
Create a new OVAC\HubtelPayment instance.
at line 86
ConfigInterface
getConfig()
Returns the Config repository instance.
at line 105
string
getAccountNumber()
Get the Merchant Client Account Number from the configuration
at line 112
$this
setAccountNumber(string $accountNumber)
Sets the Hubter API Merchant Account Number.
at line 121
string
getClientId()
Returns the Hubtel API Merchant Client ID.
at line 128
$this
setClientId(string $clientId)
Sets the Hubtel API Merchant ID.
at line 137
string
getClientSecret()
Returns the Hubtel API Merchant Client Secret.
at line 144
$this
setClientSecret(string $clientSecret)
Sets the Hubtel API Merchant Client Secret.
at line 153
string
getPackageVersion()
Returns the current package version.
at line 160
setPackageVersion(string $version)
Set the current package version
at line 174
static Transaction
__callStatic(string $className, array $parameters)
Dynamically handle missing Static Api Classes and Methods.
at line 185
Transaction
__call(string $method, array $parameters)
Dynamically handle missing Api Classes and Methods.
at line 196
protected Transaction
getApiInstance($className, $parameters)
Returns the Api class instance for the given method.