You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(billing): add checkout metadata, harden webhook and customer creation (#3265)
* fix(billing): add checkout metadata, harden webhook and customer creation
- Add organizationId and plan metadata to Stripe checkout sessions (#3259)
- Wrap SubscriptionRepository.create in try/catch for duplicate key race condition (#3260)
- Fallback to stripeCustomerId lookup when checkout metadata is missing (#3261)
- Remove Stripe error details from webhook signature failure response (#3262)
Closes#3259, closes#3260, closes#3261, closes#3262
* fix(billing): address review feedback on metadata and fallback
- Use planId instead of name for checkout metadata plan field
- Fix webhook fallback to extract organization._id from populated doc
- Use destructured stripeCustomerId for consistency in fallback
- Update test mocks to reflect populated organization shape
0 commit comments