Getting Started
This guide walks you through creating your first checkout session using Galeโs API. By the end, youโll understand the full payment flow.Base URL
glm_test_) during development. All test transactions are processed in sandbox mode with no real charges.
Authentication
Include your API key in theAuthorization header:
Quick Start
1. Sync a Product
Before creating a checkout, sync your product catalog so Gale can determine HSA/FSA eligibility.2. Create a Checkout Session
Create a checkout session and get a URL to redirect your customer to:3. Redirect Customer
Send your customer to thecheckout_url. Galeโs hosted checkout page handles:
- HSA/FSA card collection
- Eligibility verification
- Letter of Medical Necessity (LMN) flow for dual-purpose items
- Payment processing
success_url or failure_url.
4. Confirm Payment
Option A: Webhooks (recommended) Register a webhook endpoint in your Dashboard under Settings > Webhooks. Gale sends anorder.created event when payment succeeds:
Three Key IDs
Testing
Use test API keys (glm_test_*) during development. Test card numbers:
See Test Cards for the full list.
Next Steps
Integration Flow
Full end-to-end integration walkthrough
Checkout Guide
Detailed checkout integration guide
API Reference
Complete API endpoint documentation
Webhooks
Set up real-time event notifications
