FunnelFox Billing manages the complete payment lifecycle, from initial
charge through retries and recovery. This architecture enables features
like PSP switching and intelligent routing without disrupting your
subscription logic.
Key insight : FunnelFox separates subscription management from payment
processing. PSPs only handle charge authorization while FunnelFox manages
everything else - subscriptions, retries, and customer lifecycle.
Architecture Overview
Separation of Responsibilities
FunnelFox Billing creates a layer between your business logic and payment
providers:
Architecture Flow:
Customer to FunnelFox Billing
FunnelFox to Products & Subscriptions
FunnelFox to Payment Router
Router to Multiple PSPs (Stripe, PayPal, Adyen, etc.)
FunnelFox Manages:
Product catalog and pricing
Customer profiles and data
Subscription lifecycle
Retry logic and schedules
Grace periods
PSPs Handle:
Card authorization
Payment processing
Regulatory compliance
Settlement and payouts
This separation means you can switch PSPs instantly without touching
your funnel logic or affecting active subscriptions.
Payment Routing
How Routing Works
FunnelFox intelligently routes each payment based on your configuration:
Payment initiated
Customer submits payment in your funnel checkout
Router evaluates
System checks routing rules and PSP availability
PSP selected
Primary PSP attempted first, fallback if needed
Charge processed
PSP authorizes card and processes payment
Result handled
FunnelFox updates subscription based on result
Routing Strategies
Primary/Fallback Geographic Amount-Based Most common setup for reliability:
Primary PSP: Handles 95%+ of transactions
Fallback PSP: Activated if primary fails
Automatic switchover on errors
No customer friction during issues
Example: Stripe primary, PayPal fallback
Coming soon : Smart routing based on real-time approval rates,
allowing automatic optimization without manual configuration.
Retry Mechanism
Intelligent Recovery
When payments fail, FunnelFox automatically attempts recovery:
Attempts vary based on billing period:
Daily : Retry after 1 day
Weekly : Retry after 2, 4 days
Monthly : Retry after 3, 7, 14 days
Yearly : Retry after 7, 14, 21, 28 days
Different retry strategies based on decline reason:
Insufficient funds : Retry in 3-5 days
Expired card : Email for update, longer retry
Lost/stolen : No retry, immediate cancellation
Generic decline : Standard retry schedule
Grace Periods
Keep customers active during payment recovery:
How Grace Periods Work:
Payment fails on renewal date
Subscription enters grace period
Customer retains full access
Retry attempts continue
Success extends subscription
Final failure triggers cancellation
Grace Period Lengths:
Daily subscriptions: 1 day
Weekly subscriptions: 3 days
Monthly subscriptions: 7-14 days
Annual subscriptions: 30 days
Billing cycle adjustment : If payment succeeds during grace period,
the billing cycle shifts forward to the success date. This ensures
customers only pay for periods with access.
Transaction Lifecycle
New Subscription Flow
Customer initiates
Enters card details in funnel checkout
Validation
Card validated and tokenized by PSP
Authorization
Initial payment authorized and captured
Subscription created
FunnelFox creates subscription record
Access granted
Customer gains immediate access
Confirmation
Email receipt and welcome message sent
Renewal Flow
Renewal triggered
System initiates charge before period ends
Payment attempt
Charge processed using stored payment method
Success path
If successful: Subscription extended, invoice sent
Failure path
If failed: Enter grace period, begin retry sequence
Recovery
Multiple retry attempts based on schedule
Resolution
Either payment recovers or subscription cancels
Supported PSPs
Current Integrations
FunnelFox Billing supports these payment providers:
Stripe Best for : SaaS, digital products
Strengths : Developer-friendly, global reach
Regions : 40+ countries
PayPal Best for : Consumer products
Strengths : Customer trust, buyer protection
Regions : 200+ countries
Adyen Best for : Enterprise, high volume
Strengths : Approval rates, unified commerce
Regions : Global coverage
Checkout.com Best for : Emerging markets
Strengths : Local payment methods
Regions : Strong in APAC, MENA
Additional providers can be added on request. Each PSP integration
includes full support for cards, 3D Secure, and webhooks.
Advanced Features
Partial Refunds
Issue refunds without canceling subscriptions:
Service Credits Proration Goodwill Refund part of current period for service issues. Subscription
continues normally with full access maintained.
Subscription Migrations
Move subscriptions between PSPs seamlessly:
Customer subscriptions identified for migration
New payment method collected if needed
Next renewal processes through new PSP
Historical data preserved
No service interruption
Monitoring & Analytics
Key Metrics
Track payment performance across PSPs:
Percentage of payment attempts that succeed. Target: >90% for
established businesses.
Percentage of failed payments recovered through retries. Good: >30%,
Excellent: >50%.
Percentage of subscriptions lost to payment failures. Target: <5%
involuntary churn.
Compare approval rates, fees, and settlement times across providers
to optimize routing.
Best Practices
Optimization Tips
Reduce Failures:
Collect billing ZIP/postal code
Use 3D Secure for high-risk transactions
Update cards before expiration
Send pre-dunning notifications
Improve Recovery:
Optimize retry timing for your audience
Test different dunning messages
Offer payment method updates via email
Consider grace period extensions
Maximize Revenue:
Route by approval probability
Use local payment methods
Implement smart retry logic
Monitor and adjust continuously
Troubleshooting
Payments routing to wrong PSP
Check routing rules priority. Verify PSP credentials are valid.
Review geographic detection if using regional routing.
Confirm retry schedules are configured. Check PSP webhook delivery.
Verify subscription is in grace period, not cancelled.
Ensure grace period settings match billing period. Check that
retry attempts are configured. Verify customer access logic.
Review webhook handling for idempotency. Check for multiple PSP
configurations. Ensure proper error handling in checkout.
Next Steps