[feat] Stripe subscription#3369
Merged
Merged
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## dev #3369 +/- ##
==========================================
- Coverage 56.12% 55.89% -0.24%
==========================================
Files 116 116
Lines 15114 15271 +157
==========================================
+ Hits 8483 8535 +52
- Misses 6631 6736 +105 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
dni
reviewed
Oct 6, 2025
7494e3a to
8411c3e
Compare
8411c3e to
215caca
Compare
arcbtc
approved these changes
Oct 10, 2025
dni
approved these changes
Oct 13, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Users can now create a fiat subscription.
Each time a successful recurring (subscription) payment is made on the Fiat Provider side (here Stripe) an incoming payment will be generate on the user's LNbits wallet.
Flow:
Subscription Request:
{ "subscription_id": "123", // id specific to the fiat provider (previously configured) "quantity": 0, // number of items to be purchased (eg 3 x monthly subscription) "payment_options": { "memo": "string", // all generated payments on the LNbits side will have this value in the memo (plus some payment data) "wallet_id": "string", // the wallet where the payment will be created "tag": "string", // set a tag on the payment (optional, admin only) "extra": {}, // append to the payment extra data (optional, admin only) "success_url": "https://my.lnbits.com" } }Example:
{ "ok": true, "checkout_session_url": "https://checkout.stripe.com/c/pay/cs_test_a1RTs...", "error_message": null }