Install the SDK
Get up and running in minutes with our Getting Started Guide.
Building payment integrations across Africa means dealing with multiple providers, each with their own APIs, data formats, and quirks. Voltax eliminates this complexity by providing:
VoltaxProvider) for all gatewaysimport Voltax, { Currency, PaymentStatus } from "@noelzappy/voltax";
// Initialize with your provider credentialsconst voltax = new Voltax({ paystack: { secretKey: process.env.PAYSTACK_SECRET_KEY }, flutterwave: { secretKey: process.env.FLUTTERWAVE_SECRET_KEY },});
// Same API for any providerconst payment = await voltax.paystack.initializePayment({ amount: 5000, email: "customer@example.com", currency: Currency.NGN, reference: "order-123",});
// Redirect customer to payment pageconsole.log(payment.authorizationUrl);
// Later, verify the paymentconst result = await voltax.paystack.verifyTransaction("order-123");if (result.status === PaymentStatus.SUCCESS) { // Fulfill the order}| Provider | Countries | Status |
|---|---|---|
| Paystack | Nigeria, Ghana, South Africa, Kenya | ✅ Supported |
| Flutterwave | Nigeria, Ghana, Kenya, South Africa + 30 more | ✅ Supported |
| Hubtel | Ghana | ✅ Supported |
Install the SDK
Get up and running in minutes with our Getting Started Guide.
Initialize Payments
Learn how to create and manage payments with any provider.
Handle Errors
Implement robust error handling for production apps.
API Reference
Explore the complete API documentation with all classes, interfaces, and types.
Paystack
Integrate Paystack payments with channels, splits, and subscriptions.
Flutterwave
Set up Flutterwave payments with customization and subaccounts.
Hubtel
Configure Hubtel payments for Ghana with mobile money support.
Examples
Real-world integration examples for common scenarios.