Skip to main content
When 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

At least one wallet must be fully configured for wallet-only mode to be considered.

Decision flow

  1. Wants wallet-only: showOnlyWalletMethods === true and Apple or Google fully configured.
  2. Wait for PS_WALLET_READINESS from the parent SDK (or 5s timeout → full UI).
  3. At least one configured wallet must report true in readiness; otherwise full UI.
  4. 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 — toggle showOnlyWalletMethods in the host controls.