Skip to main content
<MoonPayConnect> renders the MoonPay connect flow inline in your layout. It is the declarative alternative to client.connect(). When the customer completes the flow with an active connection, 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. If you want the full end-to-end flow (create session → check connection → connect), start with the Connect a customer guide.
ConnectScreen.tsx

Props

ConnectEvent

Use event.kind to handle each event. ConnectEventError is discriminated by code: ConfigValidationFieldError entries have code: "invalidSessionToken" | "invalidClientToken" | "invalidPublicKey" and a developer-facing message.