X402 facilitators
The x402.settle_result object
The outcome of settling a signed x402 payment on-chain, in the shape of the x402 v2 facilitator /settle answer. The USDC goes straight to your wallet, and Paycose records the payment as a crypto payment intent. settlement_pending means the outcome is not known yet, not that it failed; the charge's webhooks tell you when it lands.
Attributes
successbooleanRequiredtruewhen the transfer landed on-chain.transactionstringHash of the settlement transaction, once one was signed.
networkstringCAIP-2 ID of the network the payment settles on.
payerstringAddress of the wallet that paid.
errorReasonstringx402 reason the settle did not succeed, such as
settlement_pendingwhile the transaction is unconfirmed. Reasons starting withpaycose_are Paycose's own, for examplepaycose_platform_credit_insufficientwhen your platform credit cannot cover the fee. Omitted on success.replayedbooleantruewhen an earlier call already settled this payment. Do not serve the resource for it again.