# In that case you would need to keep track of the original state of the subscription locally, listen for any invoice.payment_failed event, and revert the subscription in that case.
# do you know for when previewing a an upcoming invoice for an upgrade do I need to pass in proration_date