adrienverge / localstripe

A fake but stateful Stripe server that you can run locally, for testing purposes.
GNU General Public License v3.0
192 stars 59 forks source link

Subscription: Correctly set latest_invoice on manual payment #138

Closed adrienverge closed 4 years ago

adrienverge commented 4 years ago

This fixes the following bug: if a subscription was upgraded to a plan with the same billing cycle (e.g. yearly → yearly), and the user generated the invoice manually, then the Subscription.latest_invoice wasn't updated to the new value.