Skip to main content
<MoonPayApplePayButton> is deprecated. Render <MoonPayBuyButton> instead. For an Apple Pay quote, it renders the Apple Pay button and accepts the same applePayButtonSettings prop. It reports an expired quote as an "error" with code quoteExpired, and Apple Pay being unavailable as an "error" with code applePayUnavailable. Existing <MoonPayApplePayButton> usage keeps working. Build new integrations with <MoonPayBuyButton>.
<MoonPayApplePayButton> renders an Apple Pay button inline in your layout.
Apple Pay availability inside a WebView depends on iOS WebKit support. The component emits "unsupported" when Apple Pay isn’t available — surface a fallback payment method.
ApplePaySection.tsx

Props

ApplePayEvent

Use event.kind to handle each event. "error" kinds: "configurationError" | "invalidQuote" | "quoteExpired" | "oneTapApplePaySecondFactorRequired" | "genericError" "oneTapApplePaySecondFactorRequired" occurs during the 1TAP Apple Pay flow when MoonPay needs a second authentication factor. Hand off to client.connect() or render <MoonPayConnect>, then retry.