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
- Customer clicks “Checkout” on your site
- Your site creates a checkout session via
POST /v2/checkout - Gale returns a
checkout_url - Your site redirects customer to the checkout URL
- Customer completes payment on Gale’s hosted page
- Gale sends webhook with
order.createdevent - Your system fulfills the order
- 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.
- 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
- 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:- Collects payment information - Secure card entry
- Detects HSA/FSA eligibility - Real-time SIGIS verification
- Handles dual-purpose items - LMN flow when required
- Processes payment - Charges appropriate payment method(s)
- Creates order - Sends webhook notification to your system
Checkout URL Customization
Pre-fill customer information to streamline checkout:Subscription Support
For recurring payments, add subscription parameters:Testing
Use test API keys and test cards:Related Resources
Support
Questions about checkout integration?- 📧 Email: support@withgale.com
- 💬 Contact Support
