Pass the wallets prop to show Apple Pay and Google Pay buttons above the card form. Buttons auto-hide when the device doesn't support the wallet — Apple Pay only renders on Safari, Google Pay requires the Payment Request API.
// Enable both wallets <BlazeCheckout wallets={{{ applePay: true, googlePay: true }}} onWalletClick={(wallet) => handleWalletPayment(wallet)} // ... other props />
// Apple Pay only <BlazeCheckout wallets={{{ applePay: true }}} onWalletClick={(wallet) => handleWalletPayment(wallet)} // ... other props />
| Prop | Type | Description |
|---|---|---|
wallets |
{ applePay?: boolean; googlePay?: boolean } | Optional. Enables wallet buttons above the card form. |
onWalletClick |
(wallet: "applePay" | "googlePay") => void | Called when a wallet button is clicked. |
window.ApplePaySession?.canMakePayments()PaymentRequest API combined with canMakePayment()appearance.rules['.WalletButton']colorBorder and colorTextSecondary from your theme