Create a Checkout

Create a dynamic checkout page for integration into your service.

POST /checkout/create

Headers

Name
Value

Content-Type

application/json

Accept

application/json

X-TX-AppId

YOUR-APP-ID

X-TX-Signature

HMAC SHA-256 content hash View

Body

{
  "name": "checkout",
  "maxExpiredSeconds": 3600, // Optional. Max expiration time in seconds, or 0 for never expire(default)
  "maximumBeforeExpired": 1, // Optional. Max payments allowed within maxExpiredSeconds, or 0 for unlimited (default)
  "pricing": "118.95",
  "pricingCurrency": {       // Fiat currency pricing
    "currencyId": 301,
    "currencyCode": "USD",   // Optional
    "currencyType": "FIAT"
  },
  "receiveCurrency": [
    {
      "currencyId": 201,
      "symbol": "USDT",        // Optional
      "chainName": "Ethereum"  // Equivalent to ETH, case-insensitive
    },
    {
      "currencyId": 202,
      "symbol": "USDC",
      "chainName": "Ethereum"
    }
  ],
  "recipients": [
    "0x5FbE74A283f7954f10AA04C2eDf55578811aeb03"
  ],
  "redirectUrl": "https://ok.my-service-domain", // Payment complation
  "backToUrl": "https://order.my-service-domain" // Click the back button in the header
}

Request

Response

Last updated