Skip to main content

Checkout Integration

The most common way to integrate Gale. Create a checkout session via API, redirect your customer to Gale’s hosted page, and we handle the rest—including card collection, eligibility detection, and LMN flow for dual-purpose products.

How It Works

  1. Customer clicks “Checkout” on your site
  2. Your site creates a checkout session via POST /api/v2/checkout
  3. Gale returns a checkout_url
  4. Your site redirects customer to the checkout URL
  5. Customer completes payment on Gale’s hosted page
  6. Gale sends webhook with order.created event
  7. Your system fulfills the order
  8. Customer is redirected back to your success_url

When to Use Checkout

Using Shopify or WooCommerce? Install our plugin instead:The Checkout API is for custom platforms and sites not supported by our plugins.
Perfect for:
  • Custom e-commerce platforms
  • Membership and subscription platforms
  • SaaS applications
  • Next.js, React, or custom-built sites
  • Adding HSA/FSA payments alongside existing payment methods
Use cases:
  • Next.js membership site with monthly subscriptions
  • Custom healthcare e-commerce store
  • Wellness platform built on custom stack
  • Telehealth service with custom checkout

Quick Start

1. Create Checkout Session

2. Redirect Customer

3. Handle Webhook

Integration Examples

Next.js Membership Site

React E-commerce Checkout

Shopify Integration

What Gale Handles

When customers reach the hosted checkout page, Gale automatically:
  1. Collects payment information - Secure card entry
  2. Detects HSA/FSA eligibility - Real-time SIGIS verification
  3. Handles dual-purpose items - LMN flow when required
  4. Processes payment - Charges appropriate payment method(s)
  5. Creates order - Sends webhook notification to your system

Checkout URL Customization

Pre-fill customer information to streamline checkout:
Customer only needs to enter payment details.

Subscription Support

For recurring payments, add subscription parameters:

Testing

Use test API keys and test cards:
See Test Cards for full list.

Support

Questions about checkout integration?