A checkout link is a shareable URL that opens a Dubu Pay-hosted payment page. You create the link once through the API, share it with your customer by any channel (email, SMS, chat), and Dubu Pay handles the entire payment experience — bank transfer instructions, status updates, and receipts. No custom frontend required.Documentation Index
Fetch the complete documentation index at: https://docs.dubupay.com/llms.txt
Use this file to discover all available pages before exploring further.
When to use checkout links vs virtual bank accounts
| Checkout links | Virtual bank accounts | |
|---|---|---|
| Setup | No frontend code | Requires UI to display account details |
| Best for | One-off charges, invoices, product sales | Wallets, recurring top-ups, custom flows |
| Payment page | Hosted by Dubu Pay | You build it |
| Branding | Dubu Pay branding | Fully custom |
| Reuse | One link, many payers (one-time type) | One account per payer / session |
Create a checkout link
Simple one-time payment link
url field is the link you share with your customer.
Checkout link for an existing invoice
Link a checkout link to an invoice you’ve already created. Dubu Pay will show the invoice line items on the payment page and mark the invoice aspaid when the payment clears.
Checkout link with inline line items
Create a checkout link and define the line items inline without first creating a standalone invoice:| Field | Type | Required | Description |
|---|---|---|---|
title | string | Yes | Displayed on the payment page (max 255 chars) |
description | string | No | Additional context for the payer (max 2000 chars) |
type | string | No | one_time (default) or invoice |
slug | string | No | Custom URL slug, e.g. logo-design. Lowercase alphanumeric and dashes only |
currency | string | No | NGN or USD |
amount | number | No | Required for one_time links without line items |
invoice_id | string | No | Link to an existing invoice UUID |
customer_name | string | No | Pre-fill customer name on the payment page |
customer_email | string | No | Pre-fill customer email |
line_items | array | No | Define items inline when type is invoice |
redirect_url | string | No | URL to redirect the payer after successful payment |
success_message | string | No | Message displayed after payment (max 500 chars) |
Share the link with customers
Once created, theurl in the response is ready to share. You can:
- Embed it as a button or hyperlink in your own emails
- Copy it into an SMS or WhatsApp message
- Display it as a QR code in a physical location
- Add it to a PDF invoice as a “Pay now” link
Update a checkout link
You can update the title, description, redirect URL, success message, or status (active / inactive) of any link:
status to inactive disables the link so new visitors see an error page instead of the payment form. Existing payments in progress are not affected.
List checkout links
status (active or inactive). Supports page and limit (max 100).
Delete a checkout link
cURL
Receive payment notifications
When a customer pays through a checkout link, Dubu Pay fires acheckout.payment.completed webhook event to all of your registered endpoints. Subscribe to this event to fulfil orders automatically. See the Webhooks guide for setup details.