Adam Daley 48c33a2d31 Add Stripe subscription support via Setup Intents and webhooks (#3455)
Introduces comprehensive recurring payment support to the Stripe payment
gateway using Stripe Setup Intents, Subscriptions, and webhook events.

Key changes:
- Add supports_subscriptions capability and webhook_secret config fields
- Generate subscription forms using Setup Intents + Stripe Elements
- Process subscription setup via Setup Intent redirect callback
- Handle subscription lifecycle via webhooks (created/updated/deleted)
- Handle recurring payments via invoice.payment_succeeded webhook
- Verify webhook signatures using Stripe signing secret
- Generate renewal invoices for recurring subscription payments
- Support JSON webhook payloads in ipn.php (skip_validation)

Security:
- Webhook signature verification via Stripe\Webhook::constructEvent()
- XSS-safe escaping of buyer name/email in subscription form HTML

Follows existing patterns from PayPal adapter and incorporates all
recent Stripe improvements (claimForProcessing, invoice approval,
deposit-type checks, Model_Transaction status constants).

Ref: #2828
2026-06-27 02:46:06 +01:00
2026-06-25 17:54:05 +00:00


FOSSBilling logo

Download button

CI Download Latest License CodeFactor Financial Contributors Crowdin Discord Stand With Ukraine Contributor Covenant

Note

FOSSBilling is under active development and currently considered beta. Expect rough edges and limited support.

FOSSBilling is a free, open-source billing and client management system. It helps online service businesses automate invoicing, payments, and client communication. While it’s popular with web hosting providers, it also works well for software licensing, digital downloads, and subscription services.

Features

  • Billing & Invoicing: automated invoices, reminders, and basic reporting.
  • Client Management: a central place for client data and communication.
  • Extensibility: extension-friendly architecture for integrations and custom features.
  • Payments: support for multiple gateways.
  • Translations: community-powered, multi-language interface.
  • Responsive UI: usable on desktop and mobile.
  • Security-focused: built with security best practices in mind.

Getting Started

Requirements

FOSSBilling runs on standard LAMP/LEMP stacks. For the latest system requirements (PHP version, extensions, database, etc.), see the official requirements.

Installation

Follow the step-by-step Getting Started guide.

Just exploring? Try the public demo.

Contributing

We welcome contributions from the community! We’re actively modernizing the codebase and there’s plenty to do.

If you prefer to start a conversation first, drop by the forum or say hello on Discord.

Star History

Star History Chart

Not a developer? Starring the repository helps others discover the project.

License

FOSSBilling is released under the Apache 2.0 license. See LICENSE for details.

This project includes third-party work:

Languages
PHP 81.7%
Twig 16.4%
TypeScript 1.6%
SCSS 0.1%