Config
class Config implements ConfigInterface (View source)
Config Class
This class holds the instance confuguration and the methods required to update or retrieve required configuration data.
Properties
| protected string | $version | This OVAC/Hubtel-Payment Package Version. | |
| protected string | $accountNumber | The Hubtel Merchant Account Number to bill from. | |
| protected string | $clientId | The Hubtel Developer Applicaton Client Id. | |
| protected string | $clientSecret | The Hubtel Developer Applicaton Client Secret. |
Methods
Constructor
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
Details
at line 60
void
__construct(string $accoutNumber = null, string $clientId = null, string $clientSecret = null)
Constructor
at line 70
string
getAccountNumber()
Get the Merchant Client Account Number from the configuration
at line 77
$this
setAccountNumber(string $accountNumber)
Sets the Hubter API Merchant Account Number.
at line 86
string
getClientId()
Returns the Hubtel API Merchant Client ID.
at line 93
$this
setClientId(string $clientId)
Sets the Hubtel API Merchant ID.
at line 102
string
getClientSecret()
Returns the Hubtel API Merchant Client Secret.
at line 109
$this
setClientSecret(string $clientSecret)
Sets the Hubtel API Merchant Client Secret.
at line 118
string
getPackageVersion()
Returns the current package version.
at line 125
setPackageVersion(string $version)
Set the current package version