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

Name
Value

Api-key

Your Merchant API Key

Content Type

application/json

Accept

text/plain

Body

Name
Type
Nullable
Description

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

{
  "success": true,
  "message": "",
  "body": " 3256e147c6fe4d36a9341a5112ed2214"
}

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