stripe-rs icon indicating copy to clipboard operation
stripe-rs copied to clipboard

updating Subscription::cancel()

Open hah opened this issue 3 years ago • 2 comments

as per https://stripe.com/docs/upgrades#2018-08-23:

  • You can no longer set at_period_end in the subscription DELETE endpoints. The DELETE endpoint is reserved for immediate canceling going forward. Use cancel_at_period_end on the subscription update endpoints instead.

hah avatar Aug 08 '20 14:08 hah

oops, now it works exactly as delete() however you can not pass arguments to cancel anymore, so one of these should be removed completely

hah avatar Aug 08 '20 14:08 hah

Hi @hah, thanks for opening this PR! Are you still interested in getting this merged? It looks like this is a bug in the latest code for handling subscriptions.

seanpianka avatar Sep 11 '21 20:09 seanpianka