Is your feature request related to a problem? Please describe.
When subscriber payment details are updated, this suceeds (because payment details are not persisted by subscribie, they are persisted by the payment provider (e.g. stripe), however the webhook does not correctly return 200 causing that webhook type & mode (setup) combination to return a 500 response.
subscribie/blueprints/checkout/__init__.py", line 1059, in stripe_webhook
currency = session["currency"].upper()
^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'upper'
Describe the solution you'd like
Handle checkout.session.completed mode type setup events correctly with a 200 response.
Is your feature request related to a problem? Please describe.
When subscriber payment details are updated, this suceeds (because payment details are not persisted by subscribie, they are persisted by the payment provider (e.g. stripe), however the webhook does not correctly return 200 causing that webhook type & mode (
setup
) combination to return a500
response.Describe the solution you'd like
Handle
checkout.session.completed
mode typesetup
events correctly with a200
response.Describe alternatives you've considered
Additional context