Paymento Documention
  • 👋Project Overview
  • Overview
    • 💡Mission and Vision
    • 📜Whitepaper
      • Problem Statement
      • Solution
      • Architecture and Technology
      • Business Model
      • Financial Sustainability
      • Tokenomics
      • Road Map
  • Accept Crypto Payments
    • ⭐Get Started
    • 🔐API Key Generation
      • How to Export xPub Keys
    • 🌐Payment Integration
    • 🛠️Prebuilt Payment Plugins
    • 🐞Testing and Simulation
      • Creating a Testnet Wallet
      • Accquire Testnet Assets
      • Creating Transactions
  • API Documention
    • API Overview
    • Payment Request
    • Payment Callback
    • Payment Verify
    • Additional APIs
      • Manage Payment Settings
      • Get List of Accepted Coins
  • Fee & Pricing
Powered by GitBook
On this page
  1. API Documention

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"
}
{
  "error": "Invalid request"
}

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.

PreviousAPI OverviewNextPayment Callback

Last updated 7 months ago