Skip to main content
A scheme is the contract between what a client authorizes and what a seller can charge. StellarX402 ships with two: exact and upto. A third, batch, is planned. Each scheme reuses the same verify/settle plumbing; the only thing that changes is how the amount is bound.

The schemes at a glance

How the scheme is negotiated

The seller declares which scheme applies in the PaymentRequirements that come back with the 402. The client cannot switch schemes unilaterally; if it disagrees, it simply does not pay. If a seller supports multiple schemes on the same endpoint, they can return an array of PaymentRequirements and let the client pick.

Where next