Fixed checkout failures when collecting tax IDs#29010
Conversation
no ref Stripe requires Checkout sessions for existing customers to allow name updates when tax ID collection is enabled. This keeps the existing automatic tax customer update and lets Stripe save the legal business name.
|
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 (2)
WalkthroughThis change modifies StripeAPI's checkout session creation logic so that when automatic tax is enabled and a customer is present, the Changes
Sequence Diagram(s)sequenceDiagram
participant Caller
participant StripeAPI
participant Stripe
Caller->>StripeAPI: createCheckoutSession/createDonationCheckoutSession/createGiftCheckoutSession
alt automatic tax enabled and customer present
StripeAPI->>StripeAPI: set customer_update = {address: 'auto', name: 'auto'}
end
StripeAPI->>Stripe: create session with stripeSessionOptions
Stripe-->>StripeAPI: session response
StripeAPI-->>Caller: session
Related issues: None specified. Related PRs: None specified. Suggested labels: stripe, bug-fix Suggested reviewers: None specified. 🚀 A tiny tweak in Stripe's own hand, 🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
Testing