For the complete documentation index, see llms.txt. This page is also available as Markdown.

Checkout Payment Methods

Choose between multi-chain and specified-chain Checkout Mode payments.

Checkout Mode supports two payment experiences controlled by payment_method. Choose whether the user can select a supported USDT network on the checkout page or whether your order requires a specific network.

At a glance

Checkout experience

payment_method

currency or pay_currency

User experience

Multi-chain checkout

on_line

USDT

The checkout page lets the user choose any supported network for USDT.

Specified-chain checkout

on_chain

A chain-specific asset such as USDT_TRC20

The checkout page and returned payment address are fixed to the specified network.

Which currency field to use

The field depends on how the order amount is denominated:

  • For a crypto-denominated order, set currency to USDT or a chain-specific USDT asset.

  • For a fiat-denominated order, set currency to the fiat currency and use pay_currency to control how the user pays.

Multi-chain checkout with on_line

Use payment_method=on_line when you want the user to choose the payment network on the hosted checkout page. Set the applicable payment asset field to the generic USDT code.

For a crypto-denominated order, the relevant fields are:

{
  "payment_method": "on_line",
  "currency": "USDT"
}

For a fiat-denominated order, keep the fiat currency in currency and set pay_currency to USDT:

The user can then choose any USDT network supported by MusePay.

Hosted checkout generated with payment_method set to on_line
The on_line checkout lets the user select a supported USDT network before paying.
Multiple Chain Checkout

Specified-chain checkout with on_chain

Use payment_method=on_chain when the order must be paid on a specific network. Set the applicable payment asset field to a chain-specific code such as USDT_TRC20.

For a crypto-denominated order, the relevant fields are:

For a fiat-denominated order, keep the fiat currency in currency and specify the network in pay_currency:

The hosted checkout page and the address returned for the order will accept USDT on that network only.

Specified Chain Checkout

Last updated