API Integrations
Environment Endpoints
Test Environment:
https://burntpay-u44m.onrender.com
N.B: We are currently in a test environment as such, we can't process live payment at the moment
Initialize Payment
Initialize a payment and receive a reference and initiate URL for further processing.
Endpoint:
POST https://burntpayu44m.onrender.com/payments/combined
Authentication: API Key passed in the headers.
Request Body:
{
"amount": 2,
"currency": "USD",
"token_type": "XION",
"email": "user@example.com",
"fullname": "John Doe",
"phone_country_code": "+44",
"phone_number": "1234567890",
"address_line1": "123 High St",
"city": "London",
"country": "GB"
}amount(number, required): The amount to be paid.currency(string, optional, default: "USD"): The currency for the payment.token_type(string, required): The token to be received. Must be"USDC"or"XION".
Sample Request:
Success Response:
Error Responses:
Missing amount:
Invalid token type:
No registered Xion address:
Notes:
Use the
redirect_urlto proceed with payment (e.g., card details).The
referenceis unique for each payment attempt.
Fund Wallet Endpoint
This endpoint enables developers to initiate a hosted payment session to fund any specified wallet address with USDC or XION tokens.
Endpoint
Authentication: API Key passed in the headers.
Request Body:
amount(number, required): The amount to be paid.currency(string, optional, default: "USD"): The currency for the payment.token_type(string, required): The token to be received. Must be"USDC"or"XION".
Sample Request:
Success Response:
Error Responses:
Missing amount:
Invalid token type:
No registered Xion address:
Notes:
Use the
redirect_urlto proceed with payment (e.g., card details).The
referenceis unique for each payment attempt.
Check Payment Status
Status Check Endpoint
Replace {reference} with the reference received from payment initiation after making use of the redirect_url.
Request Headers
novypay-api-key
<your-api-key>
Sample Status Check
Last updated