<MoonPayAddCard> renders the Add Card frame inline in your layout. It is
the declarative alternative to
client.setupAddCard().
Use this component when you want the card capture form embedded in a custom
screen rather than presented as a full-screen modal.
AddCardScreen.tsx
Props
AddCardEvent
Use event.kind to handle each event.
"error" codes: "configurationError" | "generic"