Overview
HubtelCheckoutConfiguration holds the merchant-specific configuration required to initialize and authenticate the checkout process with Hubtel’s payment gateway.
Constructor
Parameters
Your unique merchant identifier provided by Hubtel. This identifies your business in the Hubtel system.
The URL where Hubtel will send payment status notifications. This should be a publicly accessible endpoint on your server.
Your merchant API key for authenticating requests to Hubtel’s payment gateway. Keep this secure and never expose it in client-side code.
Properties
The merchant’s unique identifier in the Hubtel system.
The callback URL for payment status notifications.
The API key for authenticating merchant requests.
Usage Example
Security Notes
- Store API keys in secure environment variables or secrets management systems
- Never commit API keys to version control
- Use different API keys for development and production environments
- Rotate API keys periodically for enhanced security
Obtaining Credentials
To get your merchant credentials:- Log in to your Hubtel Merchant Dashboard
- Navigate to Settings > API Keys
- Copy your
merchantIDandmerchantApiKey - Configure your
callbackUrlin the webhook settings