fix: prevent payment intent creation for unauthenticated user - #3462
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (4)
📝 WalkthroughWalkthroughChangesStripe payment flow
Estimated code review effort: 3 (Moderate) | ~20 minutes Possibly related PRs
Suggested reviewers: ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ESLint
ESLint install timed out. The project may have too many dependencies for the sandbox. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3462 +/- ##
==========================================
- Coverage 73.05% 72.21% -0.85%
==========================================
Files 1175 1111 -64
Lines 29797 27868 -1929
Branches 7404 7001 -403
==========================================
- Hits 21769 20124 -1645
+ Misses 7062 6807 -255
+ Partials 966 937 -29
*This pull request uses carry forward flags. Click here to find out more.
🚀 New features to boost your workflow:
|
#3462 refactored StripeService from extractApiData (which unwrapped both the axios data and the API data envelope) to extractData (one level) and added a compensating .data to every method except getCustomerTransactions, which was left returning the still-wrapped { data: { transactions } }. The billing history table reads transactions one level too high, so it renders "No billing history found" even when the endpoint returns rows. Restore the .data unwrap and add a regression test that fails on the wrapped shape.
#3462 refactored StripeService from extractApiData (which unwrapped both the axios data and the API data envelope) to extractData (one level) and added a compensating .data to every method except getCustomerTransactions, which was left returning the still-wrapped { data: { transactions } }. The billing history table reads transactions one level too high, so it renders "No billing history found" even when the endpoint returns rows. Restore the .data unwrap and add a regression test that fails on the wrapped shape.
Why
Closes CON-697
What
Summary by CodeRabbit