-
Notifications
You must be signed in to change notification settings - Fork 573
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Modify SessionCustomTextOptions to align with checkout api #2644
Modify SessionCustomTextOptions to align with checkout api #2644
Conversation
API Updates for beta branch
API Updates for beta branch
API Updates for beta branch
API Updates for beta branch
API Updates for beta branch
API Updates for beta branch
API Updates for beta branch
API Updates for beta branch
Bring New Checkout Session Custom Text to be compatible with Stripe API Version 2022-11-15
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi, thanks so much for noticing and submitting this patch! However, I believe you meant to set the target base branch to 'master', not 'beta'.
Hey thanks, I wasn't sure where to point PRs to. I adjusted it to master. Let me know if there's anything else you need, and thanks for reviewing! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah sorry I should have clarified, can you revert your merge with beta
too (3d8eedb)? We don't want to merge those changes into master
.
It may be easier to open a new PR, or wait until tomorrow's release where we plan to address this.
As an update, this was fixed in v41.7.0 after we updated our generator (we discovered this issue also existed in |
Bring New Checkout Session Custom Text to be compatible with Stripe API Version 2022-11-15
This fixes the src/Stripe.net/Services/Checkout/Sessions/SessionCustomTextOptions.cs model, in which it currently has type AddressOptions for SessionCustomTextOptions.ShippingAddress, which does not align with stripe API definitions. This throws API exceptions when used.
SessionCustomTextOptions.ShippingAddress should be an object with a single "message" property.
See https://stripe.com/docs/api/checkout/sessions/create for details on parameters expected for this.