Overview
Payvessel Checkout provides a secure, conversion-optimized payment interface. You can integrate it in two ways:- npm package (Recommended): A lightweight frontend SDK that handles the modal UI and payment channels.
- Merchant Checkout API: A server-side integration for custom redirects or backend-driven flows.
Integrating with payvessel-checkout
The payvessel-checkout package is the fastest way to add payment capabilities to your web application.
Installation
Install the package via npm or Yarn:Usage Examples
- Vanilla JavaScript
- React
- Next.js (App Router)
Include the SDK via CDN or bundle it with your app.
Essential Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
api_key | string | Yes | Your Public API Key from the dashboard. |
customer_email | string | Yes | The customer’s email address. |
amount | string | Yes | Amount to charge in naira (e.g., “100” for ₦100.00). |
currency | string | Yes | Currency code, default is NGN. |
channels | array | No | Payment methods: ["BANK_TRANSFER", "CARD"]. |
reference | string | No | Your unique transaction reference. |
Server-Side Verification
After a successful payment, always verify the transaction on your server before providing value to the customer.- Listen for webhooks from Payvessel.
- Or use the Verify Transaction API to check the status manually.
Next Steps
Initialize API Reference
Request/response schemas for server-side integration.
Verify API Reference
How to confirm payments accurately.
