An operation that allows user to create a direct payment link
Last updated 1 month ago
Payment link created successfully
const response = await fetch('http://localhost:3002/api/v1/direct-pay', { method: 'POST', headers: { "Authorization": "Bearer JWT", "Content-Type": "application/json" }, body: JSON.stringify({ "amount": 0, "note": "text" }), }); const data = await response.json();
{ "success": false, "message": "Payment link created successfully", "statusCode": 200, "code": "PAYMENT_LINK_CREATED", "data": { "id": "1602d9", "link": "https://centiiv.com/pay?id=1602d9&type=payment_link" } }