Overview
OPay is a leading Nigerian fintech company providing secure, PCI-compliant RESTful payment APIs for accepting and processing payments. The platform operates in Nigeria and Egypt, supporting NGN and USD currencies with comprehensive payment solutions through Express Checkout, Server-Side APIs, and Mobile SDKs.Countries
Nigeria, Egypt
Currencies
NGN, USD
Integration
Cashier, Server APIs, Mobile SDKs
Fee Structure
Competitive rates (contact OPay for details)
Key Features
Express Checkout
Hosted payment page (OPay Cashier) for seamless integration
3DS Card Payments
3D Secure card payment integration with redirect flow
Bank Transfer
Generate virtual accounts for bank transfer payments
Bank Account Debit
Direct bank account debit with OTP/3DS verification
USSD Payment
USSD-based payment integration for offline payments
OPay Wallet
QR code payment via OPay Wallet
Payment Methods
- Nigeria (NGN)
- Nigeria (USD)
Available Payment Methods:
- BankCard: Visa/Mastercard with 3DS
- BankTransfer: Bank transfer to virtual account
- BankUssd: USSD payment
- BankAccount: Direct bank account debit
- OpayWalletNg: OPay Wallet payment
- OpayWalletNgQR: OPay Wallet QR code
- ReferenceCode: Reference code for POS/offline
Integration Options
Express Checkout (OPay Cashier)
Express Checkout (OPay Cashier)
Server-Side APIs
Server-Side APIs
Full control over checkout UI/UX with direct API integration.Available APIs:
- 3DS Card Payment
- Bank Transfer Payment
- Bank USSD Payment
- Bank Account Payment
- POS Payment
- Reference Code Payment
- OPay Wallet QR Payment
Mobile SDKs
Mobile SDKs
Native SDKs for mobile platforms:
- Android SDK: Java/Kotlin integration
- iOS SDK: Swift/Objective-C integration
- Flutter SDK: Cross-platform apps
- React Native SDK: React Native module
E-Commerce Plugins
E-Commerce Plugins
- WooCommerce: WordPress/WooCommerce payment gateway
- Shopify: Payment integration for Shopify stores
- Magento: Magento e-commerce integration
Authentication Methods
OPay uses two authentication methods:- Public Key Auth
- Signature Auth (HMAC-SHA512)
Used for Cashier Create Payment API
API Environments
| Environment | Base URL |
|---|---|
| Sandbox (Testing) | https://testapi.opaycheckout.com |
| Production (Live) | https://liveapi.opaycheckout.com |
| Offline Payments | https://payapi.opayweb.com |
Payment Status Values
| Status | Description |
|---|---|
| INITIAL | Payment created, awaiting customer action |
| PENDING | Payment in progress |
| SUCCESS | Payment completed successfully |
| FAIL | Payment failed |
| CLOSE | Payment closed/cancelled |
Webhooks
OPay sends POST requests to your callback URL when transaction status changes.Testing
OPay provides comprehensive test data for sandbox testing:Test Cards (NGN)
Test Cards (NGN)
| Card Number | CVV | Expiry | PIN | OTP | Status |
|---|---|---|---|---|---|
| 5061460410121111104 | 560 | 12/50 | 1104 | 543210 | SUCCESS |
| 5061460410121111105 | 561 | 12/50 | 1105 | 543210 | SUCCESS |
| 5061460410121111106 | 562 | 12/50 | 1106 | 543210 | SUCCESS |
| 5061460410121111107 | 563 | 12/50 | 1107 | 123456 | FAIL |
Test Cards (USD)
Test Cards (USD)
| Card Number | CVV | Expiry | Status |
|---|---|---|---|
| 4508750015741019 | 100 | 12/50 | SUCCESS |
| 5123450000000008 | 100 | 12/50 | SUCCESS |
| 2223000000000007 | 100 | 12/50 | FAIL |
Test Bank Account
Test Bank Account
| Field | Value |
|---|---|
| Bank Code | 033 |
| Account Number | 2215381184 |
| Phone | 0000000000 |
| DOB | 05-01-1990 |
| BVN | 123456789 |
Important Notes
- All API requests must be made over HTTPS
- Amounts are in minor units (100 kobos = 1 NGN, 100 cents = 1 USD)
- Always verify webhooks by checking signature and calling Query Status API
- Use idempotent references - each payment needs a unique reference
- Sandbox environment available for testing before production
Using with AI Tools
Add OPay’s llms.txt to your AI context:Resources
API Documentation
Complete developer documentation portal
Merchant Dashboard
Manage your account and API keys
Signature Calculator
HMAC-SHA512 signature generation tool
Support
Contact OPay support team
llms.txt File
The OPay llms.txt file is available at: Source:~/workspace/source/opay/llms.txt
Online: https://documentation.opaycheckout.com/llms.txt
This file contains comprehensive documentation for:
- Express Checkout integration
- Server-side payment APIs
- Mobile SDK integration
- Authentication methods
- Webhook handling
- Error codes
- Test credentials
- Offline payments API