In Sandbox the pages are on
sandbox.luminpay.co, and customers pay with test coins.
Create a payment link
The response includes
url; that’s the link to share. fixedAmountNgn comes back in kobo ("500000"), like every naira amount the API returns.
Turn a link off with PATCH /payment-links/{id}/status and {"status": "inactive"}; customers then see that it’s no longer active. See every payment made through a link with GET /payment-links/{id}/charges.
Create an invoice
amountNgn is whole naira. Send the returned url to your customer. The customer’s email is never shown on the public page.
- An invoice can be paid once. Its
statusgoes fromsenttopaid. - Each time the customer opens it, they get 15 minutes to pay the quoted amount. If they come back later, a fresh quote is made automatically.
- A payment for less than the full amount leaves the invoice open; you’ll see what arrived in the dashboard.
- Cancel an unpaid invoice with
PATCH /invoices/{id}/void.
Know when you’re paid
Listen for webhooks:charge.paidfor every payment. ItsdataincludespaymentLinkIdorinvoiceId, so you can tell which link or invoice it came through.invoice.paidwhen an invoice is settled, withinvoiceIdandreference.