Update payment information
POST/payment/payInfo/update
The merchant actively updates the information on the payment page, including the chain and currency.
Request
- application/json
Body
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
Currency ID
Can be obtained from Get Currency List interface
Merchant order number
Responses
- 200
- 201
- 401
- 403
- 404
OK
- application/json
- Schema
- Example (from schema)
- Example
Schema
Status code
Status message on success or error message on failure
Detailed description when error
data
object
required
Expected order payment amount
Note: The value of this field is an integer, calculated by (actual_amount * 10^currency_decimals)
Sub-contract wallet address for receiving payments
May change after the merchant or user changes the chain and currency used for payment
Salt value hash used to verify the sub-contract address
May change after the merchant or user changes the chain and currency used for payment
{
"code": 0,
"msg": "string",
"description": "string",
"data": {
"expectedAmount": "string",
"userWalletAddress": "string",
"saltHash": "string"
}
}
{
"code": 200,
"msg": "success",
"data": {
"expectedAmount": "1864595",
"userWalletAddress": "TBqJ84AKTezZnzRN5nJs1k3yD2LUbQa23K",
"saltHash": "0x657faff79490a0c7a7d798d23d6b119e5eacc8f850f99a44e32b0a6cf9da6b11"
}
}
Created
Unauthorized
Forbidden
Not Found