Skip to main content
<MoonPayGooglePayButton> is deprecated. Render <MoonPayBuyButton> instead. For a Google Pay quote, it renders the Google Pay button. It reports an expired quote as an "error" with code quoteExpired, and Google Pay being unavailable as an "error" with code googlePayUnavailable. Existing <MoonPayGooglePayButton> usage keeps working. Build new integrations with <MoonPayBuyButton>.
<MoonPayGooglePayButton> renders a Google Pay button inline in your layout.
Google Pay availability depends on the device and environment. The component emits "unsupported" when Google Pay isn’t available — surface a fallback payment method.
GooglePaySection.tsx

Props

GooglePayEvent

Use event.kind to handle each event. "error" kinds: "configurationError" | "invalidQuote" | "quoteExpired" | "genericError" Google Pay unavailability is signalled separately through the "unsupported" event, not as an error.