Payment Request
How to create a payment request and get a token for redirecting customer to paymento gateway.
Request a new payment
POST
https://api.paymento.io/v1/payment/request
Headers
Api-key
Your Merchant API Key
Content Type
application/json
Accept
text/plain
Body
fiatAmount
string
true
fiatCurrency
string
true
(e.g.) USD or EUR
ReturnUrl
string
true
orderId
string
true
Your online store order ID
Speed
int
false
0 = High
(Accept crypto transactions on mempool and complete order.
)
1 = Low
(Accept crypto transactions when specific number of blocks came (known as confirmed like 3 as 3) and complete order.
)
cryptoAmount
Json Object
true
[ { "coinName": "Bitcoin", "amount": "0.01854793" }, { "coinName": "Ethereum", "amount":
"1.54848465" } ]
additionalData
Json Object
true
[ { "key": "invoice-number", "value": "A-578" }, { "key": "param2", "value": "value2" } ]
Response
Now you can use the received token in body section and redirect your customer to
Payment URL:
https://app.paymento.io/gateway?token=TOKEN_HERE
Replace TOKEN_HERE
with the token you received.
Last updated