Demo
Authorize and Store the Payment
Build one immutablePaymentInfo with the operator, payer, receiver, token, maximum amount, three ordered expiry timestamps, fee bounds, fee receiver, and a unique salt. Store the exact struct because every later operation recomputes its hash.
The fixture prepares an ERC-3009 collector signature and submits the authorization from paymentInfo.operator.
TypeScript
Persist
paymentInfoHash, the full terms, collector, authorization transaction, and PaymentAuthorized.amount against the order.See Also
Capture an Authorization
Settle the escrowed amount before authorization expiry.
Void an Authorization
Return funds now, or let the payer reclaim after expiry.