Direct Answer: Building Lean SaaS Billing Without Margin Leakage
The most cost-effective billing architecture for micro-SaaS pairs fixed monthly subscriptions with off-session merchant-initiated transactions (MIT) for volume-based top-ups.
Rather than enabling the Stripe Billing module (which adds a recurring +0.7% surcharge on top of standard processing fees), you store a reusable customer payment token during the initial 3DS checkout using setup_future_usage=off_session. When user quotas drop below a safety threshold, your backend triggers charge_customer off-session at standard interchange rates, saving significant revenue as transaction volume scales.
SaaS Billing Cost Breakdown
| Stack | Processing Rate | Subscription Engine Surcharge | PCI Compliance Scope |
|---|---|---|---|
| AGDor Pay + Stripe | Standard Stripe rates (1.5%–2.9%) | 0% | SAQ A (lightweight) |
| Stripe + Stripe Billing | Standard Stripe rates | +0.7% on all volume | SAQ A |
| Paddle (Merchant of Record) | 5% + $0.50 per charge | Included in 5% | SAQ A |
| LemonSqueezy | 5% + $0.50 per charge | Included in 5% | SAQ A |
Prepaid MIT vs Post-Paid Invoicing Risk
In usage-based software products, billing in arrears introduces substantial credit risk:
- Default Exposure: A user consumes $150 of compute, but their card declines at the end of the billing cycle. You absorb the compute expense.
- Metered Overhead: Stripe charges premium fees for processing metered usage records.
The Prepaid MIT pattern solves both issues:
- The customer authorizes their card once during onboarding (e.g. purchasing 100,000 API requests for $20).
- When remaining credits drop below 10,000, your system automatically recharges $20 off-session.
- If the card fails, computation pauses gracefully before incurring unrecoverable costs.
Two-Step Implementation
Step 1: Initial Card Tokenization
Create the initial invoice with save_card: true and your internal customer_id:
$invoice = $invoiceService->createInvoice($project, [
'amount' => '20.00',
'wallet_code' => 'usd_stripe_main',
'customer_id' => 'user_1042',
'save_card' => true,
'external_id' => 'initial_topup_1042'
]);
// Redirect user to $invoice['payment_url']
Step 2: Off-Session Merchant-Initiated Recharge
$charge = $invoiceService->chargeCustomer($project, [
'customer_id' => 'user_1042',
'amount' => '20.00',
'description' => 'Auto-recharge: 100k API credits',
'external_id' => 'auto_' . uniqid()
]);
The charge settles off-session. Your webhook receiver verifies the invoice.confirmed payload and credits the customer's balance.
Conclusion
Combining Stripe Checkout tokenization with automated off-session recharges cuts billing overhead by half while maintaining strict PCI-DSS SAQ A isolation. Learn more about the charge_customer API endpoint on AGDor Pay.