getPaymentStatus(), then match the sender and amount to the order and record the id so it can’t be reused.
Demo
Confirm before fulfilling
confirm-order.ts
See also
- Accept a payment · Collect payer info
getPaymentStatus()reference
Confirm a Base Pay payment on-chain from your backend before fulfilling an order, and guard against replay and impersonation.
getPaymentStatus(), then match the sender and amount to the order and record the id so it can’t be reused.
getPaymentStatus() reference