Generate Payment Token
Generate Payment Token
Endpoint: POST /api/payment
Description: The Generate Payment Token
API is used to create a unique token for initiating a cryptocurrency payment. This token is required to redirect the user to the payment page and complete the transaction.
Request URL:
Method: POST
Query Parameters:
Parameter
Type
Required
Description
merchant_id
string
Yes
The unique identifier of the merchant.
amount
number
Yes
The amount to be paid in the selected cryptocurrency.
currency
string
No
The currency type (USD or EUR). Default is USD.
Example Request:
Successful Response:
Error Codes
Status Code
Message
Description
1
Success
Token generated successfully.
-1
Invalid Merchant ID.
The provided merchant_id
is not valid.
-2
Website status is not approved.
The merchant's website is not approved.
-3
Invalid currency type.
The provided currency must be USD or EUR.
Last updated