Demo
- Base Pay
- Direct USDC
- B20 with memo
Accept USDC with Base Pay
pay() opens the Base Account approval flow. Keep testnet consistent when checking the returned transaction hash.TypeScript
The function returns a completed Base Sepolia transaction hash whose recipient is the merchant.
Verify before fulfillment
A successful wallet prompt is not a fulfillment signal. Verify the recipient, token, sender, amount, memo when present, and replay state on your backend.Verify a payment
Validate settlement and claim each transaction hash exactly once.