dj-stripe / dj-stripe

dj-stripe automatically syncs your Stripe Data to your local database as pre-implemented Django Models allowing you to use the Django ORM, in your code, to work with the data making it easier and faster.
https://dj-stripe.dev
MIT License
1.56k stars 476 forks source link

Added cancellation kwargs to Subscription cancel at period end logic. #1998

Closed kavdev closed 8 months ago

kavdev commented 8 months ago

I found myself unable to add cancellation details when cancelling a subscription at period end.

This change sends **kwargs from the cancel call to the underlying _api_update call, aligning it with the _api_delete call in the not-at-period-end logic branch.

jleclanche commented 8 months ago

Cherry-picked for 2.8.3