stripe-rs
stripe-rs copied to clipboard
updating Subscription::cancel()
as per https://stripe.com/docs/upgrades#2018-08-23:
- You can no longer set
at_period_end
in the subscriptionDELETE
endpoints. TheDELETE
endpoint is reserved for immediate canceling going forward. Usecancel_at_period_end
on the subscription update endpoints instead.
oops, now it works exactly as delete() however you can not pass arguments to cancel anymore, so one of these should be removed completely
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.