Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Add Stripe subscription support via Setup Intents and webhooks#3455

Open
admdly wants to merge 1 commit intomainFOSSBilling/FOSSBilling:mainfrom
feature/stripe-subscriptionsFOSSBilling/FOSSBilling:feature/stripe-subscriptionsCopy head branch name to clipboard
Open

Add Stripe subscription support via Setup Intents and webhooks#3455
admdly wants to merge 1 commit intomainFOSSBilling/FOSSBilling:mainfrom
feature/stripe-subscriptionsFOSSBilling/FOSSBilling:feature/stripe-subscriptionsCopy head branch name to clipboard

Conversation

@admdly
Copy link
Copy Markdown
Contributor

@admdly admdly commented Apr 28, 2026

Adds comprehensive recurring payment support to the Stripe payment gateway, superseding #2828.

This implementation uses Stripe Setup Intents to securely save payment methods, Stripe Subscriptions for recurring billing, and webhook events for lifecycle management and automated payment processing. Closes #2828.

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
@admdly admdly added this to the 0.8.x milestone Apr 28, 2026
@admdly admdly self-assigned this Apr 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Morty Proxy This is a proxified and sanitized view of the page, visit original site.