<MoonPayConnectionCheck> is a headless component (renders nothing visible)
that checks the customer’s connection status. It is the declarative alternative
to client.getConnection().
When the connection is active, credentials are decrypted and stored on the
shared client automatically. Subsequent calls to client.getQuote(),
client.setupApplePay(), etc. use those credentials without any extra steps.
Mount this component once early in your flow — for example, when your app loads
or when a payment screen becomes visible. Unmount it after you receive the
"complete" event.
PaymentFlow.tsx
Props
This component renders nothing visible (0×0). It has no
style prop.
ConnectionCheckEvent
Connection statuses: