Create Stablecoin Payment Session
Build a stablecoin session with explicit chain/network/token values
Create a Stablecoin Payment Session
Use this when you are integrating on behalf of a real merchant account.
Request
curl -X POST https://api.plaidly.io/v1/payment_sessions \
-H "X-API-Key: your_plaidly_sk_live_or_test_key" \
-H "Content-Type: application/json" \
-d '{
"amount": 25.00,
"expires_in": "45m",
"paymentMethod": {
"methodID": 0,
"chain": "solana",
"token": "USDC",
"network": "testnet"
}
}'Expected response fields:
session_idaddress(wallet to receive payment)expected_amountcurrencypaymentMethod.chainpaymentMethod.tokenpaymentMethod.networkexpires_at
Some older clients still send
payment_methodwith snake_case keys. The server accepts the canonical schema shown above.
Notes
methodID: 0means on-chain crypto transfer.- Use short expiries for testing (
15m,45m,1h). expected_amountis what you should collect before fulfillment.