HubtelAdapter
Defined in: packages/node/src/providers/hubtel/hubtel.adapter.ts:20
Interface that all Voltax Gateways must implement.
Implements
Section titled “Implements”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new HubtelAdapter(
config):HubtelAdapter
Defined in: packages/node/src/providers/hubtel/hubtel.adapter.ts:24
Parameters
Section titled “Parameters”config
Section titled “config”HubtelConfig
Returns
Section titled “Returns”HubtelAdapter
Methods
Section titled “Methods”getPaymentStatus()
Section titled “getPaymentStatus()”getPaymentStatus(
reference):Promise<PaymentStatus>
Defined in: packages/node/src/providers/hubtel/hubtel.adapter.ts:122
Helper to get status directly.
Parameters
Section titled “Parameters”reference
Section titled “reference”string
Returns
Section titled “Returns”Promise<PaymentStatus>
Implementation of
Section titled “Implementation of”VoltaxProvider.getPaymentStatus
initializePayment()
Section titled “initializePayment()”initializePayment(
payload):Promise<VoltaxPaymentResponse>
Defined in: packages/node/src/providers/hubtel/hubtel.adapter.ts:41
Initialize payment with Hubtel’s checkout API
Parameters
Section titled “Parameters”payload
Section titled “payload”amount
Section titled “amount”number = ...
callbackUrl?
Section titled “callbackUrl?”string = ...
currency
Section titled “currency”Currency = ...
description?
Section titled “description?”string = ...
string = ...
metadata?
Section titled “metadata?”Record<string, any> = ...
mobileNumber?
Section titled “mobileNumber?”string = ...
options?
Section titled “options?”{ flutterwave?: { customerName?: string; linkExpiration?: Date; logoUrl?: string; maxRetryAttempts?: number; pageTitle?: string; paymentOptions?: string; paymentPlan?: number; sessionDuration?: number; subaccounts?: object[]; }; hubtel?: { cancellationUrl?: string; returnUrl?: string; }; paystack?: { bearer?: "subaccount" | "account"; channels?: PaystackChannel[]; invoiceLimit?: number; plan?: string; splitCode?: string; subaccount?: string; transactionCharge?: number; }; } | null = ...
reference?
Section titled “reference?”string = ...
Returns
Section titled “Returns”Promise<VoltaxPaymentResponse>
Promise
Implementation of
Section titled “Implementation of”VoltaxProvider.initializePayment
verifyTransaction()
Section titled “verifyTransaction()”verifyTransaction(
reference):Promise<VoltaxPaymentResponse>
Defined in: packages/node/src/providers/hubtel/hubtel.adapter.ts:93
Get transaction details.
Parameters
Section titled “Parameters”reference
Section titled “reference”string
Returns
Section titled “Returns”Promise<VoltaxPaymentResponse>