Core Concepts Defined
Merchant
Represents a business that accepts stablecoin payments. Each merchant has:
merchantId — public identifier
API key — private credential for server-to-server calls
Keep the API key private — it's a server-side credential used for authenticated calls.
Payment Session
Represents a single payment attempt by a user. You create it with amount and currency, then track it through states such as:
CREATEDPENDINGFUNDEDcapture outcomes
One-Time Wallet (OTW)
A unique wallet created for the session once the user connects a wallet and selects a stablecoin. The user funds the OTW; the merchant later captures from it.
Capture
Moves funds from the OTW to the merchant wallet. Supports partial and final captures. On final capture, any leftover is refunded to the user.

