Skip to main content
This guide gets you from a new account to a paid test charge, using testnet coins and no real money.
1

Create a Sandbox account and API key

Sign up at sandbox.luminpay.co, open Developers → API keys, and create a key. Sandbox keys start with lmp_test_.The full key is shown once. Store it in your server’s secrets, never in a browser or mobile app.
2

Create a charge

Ask for an amount in naira and the coin the customer will pay with. LuminPay works out the coin amount and returns the payment address.
The response:
Payment addresses are created a few seconds after the charge. Fetch the charge again to get them (next step).
amountNgn is sent in whole naira ("5000" is ₦5,000) but returned in kobo ("500000"). amount is in the coin’s smallest unit: USDC has 6 decimals, so "3646209" is 3.646209 USDC. amount already includes feeAmount, the LuminPay fee the customer pays on top.
3

Show the customer where to pay

addresses lists one address per network the customer can pay on, each with its own amount and scale (number of decimals). Show the address and amount for the network your customer picks, or send them to the hosted checkout page at https://sandbox.luminpay.co/pay/{chargeId}.
4

Pay with test coins

Send the exact amount from a testnet wallet. Networks and test coins lists the faucets for each network.
5

Get told when it's paid

Add a webhook endpoint and LuminPay sends charge.paid when the payment confirms. See Webhooks. Until then you can poll GET /charges/{id}, which returns status: "paid" and the txHash.
6

Go live

When your integration works in Sandbox, follow Going live. Your code stays the same; only the base URL and key change.
Need help? Email support@luminpay.co.