Add one-tap USDC payments to your app with the pay() helper and Base Pay Button.
testnet
parameter in getPaymentStatus()
must match the value used in the original pay()
call. If you initiated a payment on testnet with testnet: true
, you must also pass testnet: true
when checking its status.payerInfo
object:
type | returns |
---|---|
email | string |
name | { firstName, familyName } |
phoneNumber | { number, country } |
physicalAddress | full address object |
onchainAddress | string |
optional: true
to avoid aborting the payment if the user declines.callbackURL
to validate the user’s information on the server side.Learn more about this in the callbackURL reference.testnet: true
in your pay()
and getPaymentStatus()
calls.