Skip to main content
POST

Overview

This endpoint processes ssUSD (StateSet USD) stablecoin payments for orders on the StateSet Commerce Network. The payment is executed through smart contracts, ensuring secure and transparent transactions with instant settlement.

Body

order_id
string
required
The unique identifier of the order to be paid
payment_method
object
required
Payment method details for stablecoin payment
split_payments
array
Optional array for splitting payments between multiple recipients
metadata
object
Additional metadata for the payment

Response

success
boolean
Indicates whether the payment was successful
transaction
object
Transaction details
payment
object
Payment details
order
object
Updated order details

Error Codes

Notes

  • All payments are processed on the StateSet Commerce Network blockchain
  • USDC amounts must be specified as strings to avoid floating-point precision issues
  • The payment is atomic - either the entire payment succeeds or it fails completely
  • Gas fees are paid in STATE tokens, not USDC
  • Payments are final and cannot be reversed through the API (refunds must be processed separately)