Easy Labs
SDKsReact

Wallet Checkout

Apple Pay, Google Pay, and other wallet-native checkout flows.

Today, wallet-native flows on @easylabs/react are delivered through the Embedded Checkout iframe — there is no standalone <ApplePayButton> or <GooglePayButton> export.

Through Embedded Checkout

createEmbeddedCheckoutSession accepts a payment_methods array. Crypto wallet payments are first-class:

const res = await easy.createEmbeddedCheckoutSession({
  line_items: [{ price_id: "price_123", quantity: 1 }],
  mode: "payment",
  payment_methods: ["card", "crypto"],
  success_url: "https://example.com/checkout/success",
});

When a crypto payment confirms on-chain, the iframe emits easylabs:crypto_confirmed, which <EmbeddedCheckoutProvider> surfaces through onSuccess with a tx_signature. You can also poll status from your code with useEasy().getCryptoPaymentStatus(sessionId).

See Embedded Checkout → Customization for the full session options.

Native Apple Pay and Google Pay

There is currently no dedicated <ApplePayButton> or <GooglePayButton> component in @easylabs/react. Use the embedded checkout flow above and rely on the hosted page's wallet support.

On this page