Accept payments with minimal integration using Payvessel’s hosted checkout. Customers can pay with card or bank transfer in a single modal. Ideal for e-commerce, donations, and subscriptions.Documentation Index
Fetch the complete documentation index at: https://docs.payvessel.com/llms.txt
Use this file to discover all available pages before exploring further.
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.
Use your public API key (
api_key) in frontend code. Keep secret keys server-side only.Recommended Integration Pattern
For production systems, use this flow:- Create order/session state on your backend first.
- Launch checkout from your frontend using
payvessel-checkout. - On completion callbacks, verify transaction status on your backend.
- Fulfill value (goods/services/wallet credit) only after successful server-side verification.
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. |
customer_phone_number | string | Yes | The customer’s phone number. |
customer_name | string | Yes | The customer’s full name. |
amount | string | Yes | Amount to charge in naira (e.g., “100” for ₦100.00). |
currency | string | Yes | Currency code, default is NGN. |
metadata | object | Yes | Attach order context (for example, order id and cart id). |
channels | array | No | Payment methods: ["BANK_TRANSFER", "CARD"]. |
reference | string | No | Your unique transaction reference. |
Callback Behavior
| Callback | When It Fires | Recommended Action |
|---|---|---|
onSuccess | Initialization succeeds (checkout session created) | Log and track for observability. |
onSuccessfulOrder | Customer completes payment and transaction is confirmed in checkout flow | Call your backend to verify and then fulfill value. |
onError | Checkout initialization/payment flow encounters an error | Show user-friendly error and allow retry. |
onClose | User closes the modal | Preserve cart/session and allow resume. |
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.
Mobile and Platform SDKs
If you are not integrating with a web frontend, use the SDK that matches your platform.React Native SDK (react-native-payvessel)
Use this SDK for React Native apps with in-app modal checkout.
iOS SDK (Payvessel)
Install with CocoaPods:
Android SDK (payvessel-android-sdk)
Add JitPack and dependency:
WooCommerce Plugin
For WordPress stores, install the official WooCommerce plugin and add your Payvessel keys in WooCommerce payment settings. Reference: Payvessel Payment Gateway for WooCommerceNext Steps
Initialize API Reference
Request/response schemas for server-side integration.
Verify API Reference
How to confirm payments accurately.
