Skip to content
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

Conversation

tylergsb
Copy link

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.

pakrym-stripe and others added 30 commits June 14, 2022 15:59
@CLAassistant
Copy link

CLAassistant commented Feb 12, 2023

CLA assistant check
All committers have signed the CLA.

Copy link
Contributor

@anniel-stripe anniel-stripe left a 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'.

@tylergsb tylergsb changed the base branch from beta to master February 15, 2023 05:02
@tylergsb
Copy link
Author

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!

Copy link
Contributor

@anniel-stripe anniel-stripe left a 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.

@anniel-stripe anniel-stripe mentioned this pull request Feb 16, 2023
@anniel-stripe
Copy link
Contributor

As an update, this was fixed in v41.7.0 after we updated our generator (we discovered this issue also existed in PaymentLinkCustomTextOptions). I'll be closing this PR, but thanks so much again for pointing out this issue!

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.

7 participants