Payment Link
Create a payment link
Create a hosted payment link for collecting payments. Payment links simplify the checkout process by creating a hosted payment page where users can complete payments.
post/paymentlink
Request body
Example request
{
"name": "Bitcoin Purchase",
"description": "On-chain Bitcoin payment",
"type": "One_Time",
"settlementCurrency": "NGN, ZAR, BTC",
"settlementMethod": "ONCHAIN",
"speed": "medium",
"paymentCurrency": "NGN, ZAR, BTC",
"paymentMethods": [
"BANKTRANSFER, LIGHTNING"
],
"beneficiary": {
"onChainAddress": "bc1q8yz7u50r4nne2q8wkuc4kyxx0s76fxsjlac5fxd8h7tzkh4rs82qnweuv5",
"lnAddress": "user@getalby.com",
"lnInvoice": "lnbc..."
},
"amount": 800000,
"callbackUrl": "https://your-app.com/payment-success"
}Response
Payment link created successfully
Example response
{
"status": "ok",
"message": "payment link created successfully",
"data": {
"paymentLink": "https://checkout.staging.mavapay.co/9d1c20db-c46b-4a15-8233-1bb999e38195",
"paymentRef": "9d1c20db-c46b-4a15-8233-1bb999e38195"
}
}