Skip to content

feat: implement Stripe recurring payment (subscription) API#13

Merged
fupelaqu merged 2 commits intomainfrom
feature/licensingInfrastructure
Apr 13, 2026
Merged

feat: implement Stripe recurring payment (subscription) API#13
fupelaqu merged 2 commits intomainfrom
feature/licensingInfrastructure

Conversation

@fupelaqu
Copy link
Copy Markdown
Contributor

Add StripeRecurringPaymentApi methods (create, update status, load, delete) for Stripe subscription lifecycle management. Implement webhook handling for invoice.payment_succeeded/failed, customer.subscription.deleted/updated events. Add subscriptionId metadata propagation through the full proto→messages→handler→ DAO→server→client chain. Include unit tests (StripeRecurringPaymentApiSpec) and integration tests (StripePaymentServiceSpec).

Closed Issue #12

fupelaqu and others added 2 commits April 13, 2026 14:11
Add StripeRecurringPaymentApi methods (create, update status, load, delete)
for Stripe subscription lifecycle management. Implement webhook handling for
invoice.payment_succeeded/failed, customer.subscription.deleted/updated events.
Add subscriptionId metadata propagation through the full proto→messages→handler→
DAO→server→client chain. Include unit tests (StripeRecurringPaymentApiSpec) and
integration tests (StripePaymentServiceSpec).

Closed Issue #12

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@codecov
Copy link
Copy Markdown

codecov bot commented Apr 13, 2026

Codecov Report

❌ Patch coverage is 10.55046% with 195 lines in your changes missing coverage. Please review.
✅ Project coverage is 40.13%. Comparing base (7b6730b) to head (2aa3439).
⚠️ Report is 3 commits behind head on main.

Files with missing lines Patch % Lines
...etwork/payment/spi/StripeRecurringPaymentApi.scala 11.62% 114 Missing ⚠️
...ftnetwork/payment/service/StripeEventHandler.scala 2.50% 78 Missing ⚠️
...la/app/softnetwork/payment/api/PaymentClient.scala 0.00% 1 Missing ⚠️
...la/app/softnetwork/payment/api/PaymentServer.scala 0.00% 1 Missing ⚠️
...oftnetwork/payment/service/CheckoutEndpoints.scala 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #13      +/-   ##
==========================================
- Coverage   40.78%   40.13%   -0.65%     
==========================================
  Files         152      152              
  Lines        9708     9911     +203     
  Branches     1643     1638       -5     
==========================================
+ Hits         3959     3978      +19     
- Misses       5749     5933     +184     
Flag Coverage Δ
unittests 40.13% <10.55%> (-0.65%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@fupelaqu fupelaqu merged commit 13865f6 into main Apr 13, 2026
2 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant