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

Corrected CancelSubscription fields for current Stripe API version. #411

Merged
merged 1 commit into from
Feb 2, 2024
Merged

Corrected CancelSubscription fields for current Stripe API version. #411

merged 1 commit into from
Feb 2, 2024

Conversation

nryanl
Copy link
Contributor

@nryanl nryanl commented Jul 15, 2023

Same as #402. Accidentally closed. Sorry!

Corrected CancelSubscription fields for current Stripe API version.

A fix for #394

https://stripe.com/docs/api/subscriptions/cancel

According to the current Stripe API in the link above, there is no "reason" field within cancellation_details any longer. This also aligns with my testing where it did not recognize the parameter.
Consider removing this struct in future versions. For now, users can leave this as None.

  • Replaced at_period_end with invoice_now
  • Added cancellation_details field
  • Added prorate field

Checklist

Corrected fields for current Stripe API version.
- replaced `at_period_end` with `invoice_now`
- added `cancellation_details` field
- added `prorate` field
https://stripe.com/docs/api/subscriptions/cancel
@WoodyWoodster
Copy link

Should we include a fix for #419 in this since you are doing work around at_period_end already?

@arlyon
Copy link
Owner

arlyon commented Aug 19, 2023

I don't mind merging this now and opening a new PR. Thanks! We are waiting on a fix in #426 to fix CI and then I will ask you to rebase.

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.

3 participants