showOnlyWalletMethods is true, the widget can hide the card form, custom fields, and in-iframe pay button, plus the host “OR” divider — so customers only see Apple Pay and/or Google Pay when at least one is available.
If configuration is invalid, no wallet is available, readiness times out, or a wallet payment fails, the widget falls back to the full UI (card form, fields, submit, and “OR” divider).
User cancellation of the wallet sheet does not expand the form; only failures and fallbacks do.
Where things render
Config
Decision flow
- Wants wallet-only:
showOnlyWalletMethods === trueand Apple or Google fully configured. - Wait for
PS_WALLET_READINESSfrom the parent SDK (or 5s timeout → full UI). - At least one configured wallet must report
truein readiness; otherwise full UI. - Wallet payment error forces full UI until config changes or a new session resets state.
Events
PS_WALLET_READINESS is an internal parent↔iframe message (not in public EVENT_TYPES).
External pay button
With wallet-only +hidePaymentButton: true, payment is triggered by wallet buttons only. submitPayment() returns NO_CARD_FORM until fallback expands the card UI.
Live demo
Try wallet-only mode in the sandbox playground: https://payment.paysight.io/demo?preset=both-wallets — toggleshowOnlyWalletMethods in the host controls.