Skip to main content
<MoonPayBuyButton> renders a card payment button inline in your layout.
This button is for card payments. For bank transfers (SEPA), render your own native button and open the headless Buy frame with client.setupBuy() instead.
BuyButtonSection.tsx

Props

BuyButtonEvent

Use event.kind to handle each event. When the quote expires, the frame emits an "error" event with code: "quoteExpired". Fetch a new quote and update the quote prop to retry.