Overview
Hosted Checkout handles:- Payment information collection
- Tax calculation
- Subscription creation
- Payment processing
- Receipt delivery
Setting Up Checkout
Configure Plans for Checkout
Before customers can check out, ensure your plans are properly configured:- Navigate to Plans in the dashboard
- Select or create a plan
- Ensure the plan is marked as Active
- Configure pricing and billing terms
Branding
Customize the checkout appearance to match your brand:- Navigate to Settings → Branding
- Upload your logo
- Configure brand colors
- Preview the checkout appearance
Creating Checkout Sessions
Via Dashboard
Generate a checkout link for a customer:- Navigate to Customers → [Customer]
- Click Create Checkout Session
- Select the plan
- Copy the checkout URL or send directly to customer
Via API
For programmatic checkout, see the Create Guest Checkout Session API reference.Checkout Flow
Handling Checkout Completion
Success Redirect
After successful payment, customers are redirected to your configured success URL with session information:Webhooks
Listen for checkout completion:| Event | Description |
|---|---|
checkout.session.completed | Payment successful, subscription created |
Tax Handling
Alguna automatically calculates tax based on:- Customer location (address entered at checkout)
- Product tax categories
- Your tax configuration
Payment Methods
Supported payment methods at checkout depend on your payment provider configuration:- Credit/Debit cards
- ACH bank transfers (if enabled)
Security
PCI Compliance
Hosted Checkout is PCI DSS compliant. Card data never touches your servers.Built-in Fraud Prevention
- Address verification (AVS)
- Card verification (CVV)
- 3D Secure when required by card network
Session Security
- Sessions are single-use
- Sessions expire automatically
- Sessions cannot be reused after completion
Best Practices
Pre-fill Email
When you know the customer’s email, include it to reduce friction.
Clear Success Page
Create a clear success page confirming the subscription.
Handle Webhooks
Always implement webhook handlers to confirm payments server-side.
Test in Sandbox
Test the full checkout flow in sandbox before going live.
Troubleshooting
Checkout Not Loading
- Verify the checkout URL is valid and not expired
- Check that the plan is active
- Ensure your domain is configured correctly
Payment Failed
- Customer should check card details
- Verify the card has sufficient funds
- Check if the card supports online payments
Customer Not Redirected
- Verify success URL is correctly configured
- Check for browser popup blockers
- Ensure URL is accessible