Skip to main content

Payment callback notification

Webhook 

When the payment order status changes to paid or partially paid or payment failed, the merchant will receive a payment callback notification, and the merchant needs to update the local order status based on the callback notification.

info

Merchant can set the callback address when creating a payment order. When the payment result is confirmed, the system will send a successful payment notification to this URL.

The callback will be sent up to 6 times, respectively at 0 seconds, 15 seconds, 30 seconds, 3 minutes, 5 minutes, and 10 minutes after the recharge is confirmed.

When the merchant returns success normally, the system will consider the callback successful and will not send subsequent callbacks.

Note: The merchant needs to verify the signature of the callback notification to ensure the security of the notification. The signing method of the callback is consistent with the normal request.

Request

Body

required

    chainId int32required

    Chain ID

    This is the platform internal ID, not the chain ID on the chain or from the wallet, can be obtained from Get Chain List interface

    orgId int32required

    Merchant orgnization ID, can be obtained from the management platform

    outTradeNo stringrequired

    Merchant order number

    outPaymentNo stringrequired

    Payment order number

    description stringrequired

    Product description

    isLegalTender int32required

    Possible values: [0, 1]

    Whether the quoted currency is a fiat currency

    • 0 - No
    • 1 - Yes
    quoteCurrencySymbol stringrequired

    Quoted currency symbol, must be in uppercase letters

    Note: When the quoted currency is a fiat currency, this field is the international standard fiat currency symbol, such as USD, CNY, otherwise it is a digital currency symbol, such as USDT, TRX, ETH

    quoteAmount stringrequired

    Quoted amount

    Note: This is the actual amount, must be a positive number, can be a decimal

    paymentStatus int32required

    Possible values: [0, 1, 2, 3, 4, 5]

    Payment Order Status

    • 0 - Paid
    • 1 - Pending Payment
    • 2 - Block Confirmation
    • 3 - Partially Paid
    • 4 - Payment Failed
    • 5 - Refunded
    paymentType int32

    Possible values: [0, 1]

    Payment method

    • 0 - Contract payment
    • 1 - Scan code payment (wallet transfer)
    expectedAmount string

    Order expected payment amount

    Note: The value of this field is an integer, calculated by (actual_amount * 10^currency_decimals)

    settlementAmount string

    Order settlement amount

    Note: The value of this field is an integer, calculated by (actual_amount * 10^currency_decimals)

    settlementCurrencySymbol string

    Settlement currency symbol, based on the actual currency paid by the user

    transferHash string

    Order transaction hash

    userWalletAddress stringrequired

    Sub-contract wallet address for receiving payments

    fromAddress string

    Sender address

    createTime date-timerequired

    Order creation time

    blockTime int64

    Arrival time

    Note: Unix timestamp, unit: seconds

Responses

OK

Schema

    string

    Possible values: [success]

Loading...