Skip to main content
Use these complete examples as a starting point for your integration. Each one covers a different way to build a checkout with the FunnelFox Payments Web SDK.
Find more complete examples in the GitHub repository.

Drop-in checkout

This example lets users pick between two price points (monthly or yearly) and starts a checkout with createCheckout(). The implementation includes:
  • Configuring SDK: Set up the SDK once with your orgId using Billing.configure.
  • Creating checkout: Initialize a new checkout with Billing.createCheckout using a priceId and customer details (external ID and email).
  • Switching prices: Update the open checkout with updatePrice() instead of creating a new one.
  • Event handling: Listen for success (redirect to confirmation page), error (display error message to user), and status changes (track checkout progress).

Individual payment methods

This example checks which payment methods are available and renders each one into its own element with Billing.initMethod(). Your own button submits the card form.
The calls use the same price point and customer, so every payment method pays for the same order.

Stripe wallet and card form

This example uses the Billing.stripe methods. It shows a wallet button when Apple Pay or Google Pay is available and always shows a card form as a fallback.