ente/server/mail-templates
Vishnu Mohandas 0c400db649
[server] Fix Stripe related issues (#1152)
## Description

### Stripe
- Settings have been modified to "Cancel" the subscription if all
attempts to charge an invoice fails. The previous configuration was to
set the subscription to "Past Due".

### Museum
- Updated our Stripe workflow to use `PaymentBehaviorAllowIncomplete` in
case of SEPA payments
- Fixed the issue caused by us spawning unnecessary subscriptions when a
customer tried to renew their expired subscription
- Removed the email that was being sent out when a Stripe subscription
expired. We will have to run our own cron to send a notification and
perform necessary clean up. When payments fail, we will still send a
notification to intimate the customer that their account is on hold.

### Mobile
- Fixed the dialogs and error messages on the payment page

## Tests
The following cases were tested for SEPA, Credit Cards, and Credit Cards
with 3DS.
- [x] Purchase
  - [x] Success
  - [x] Failure
- [x] Renewal
  - [x] Success
  - [x] Failure
- [x] Upgrades
  - [x] Success
  - [x] Failure
- [x] Cancellation
- [x] Resumption post recovery

## Note

These changes are likely to break in the event of some corner cases we
haven't thought of. But this will land us in a state that is better than
where we are right now in terms of collecting payments for expired
subscriptions and those via SEPA.
2024-03-27 14:43:36 +05:30
..
account_deleted.html Import museum 2024-03-01 13:37:01 +05:30
account_deleted_active_sub.html Import museum 2024-03-01 13:37:01 +05:30
email_changed.html Import museum 2024-03-01 13:37:01 +05:30
family_accepted.html Import museum 2024-03-01 13:37:01 +05:30
family_invited.html Import museum 2024-03-01 13:37:01 +05:30
family_left.html Import museum 2024-03-01 13:37:01 +05:30
family_removed.html Import museum 2024-03-01 13:37:01 +05:30
files_collected.html Import museum 2024-03-01 13:37:01 +05:30
mobile_app_first_upload.html Update ente.io/faq => help.ente.io where possible 2024-03-25 19:26:10 +05:30
on_hold.html Update copy 2024-03-26 21:31:29 +05:30
ott_auth.html Import museum 2024-03-01 13:37:01 +05:30
ott_change_email.html Import museum 2024-03-01 13:37:01 +05:30
ott_photos.html Import museum 2024-03-01 13:37:01 +05:30
report_alert.html Import museum 2024-03-01 13:37:01 +05:30
report_limit_exceeded_alert.html Import museum 2024-03-01 13:37:01 +05:30
storage_limit_exceeded.html Import museum 2024-03-01 13:37:01 +05:30
subscription_ended.html Update ente.io/faq => help.ente.io where possible 2024-03-25 19:26:10 +05:30
subscription_upgraded.html Import museum 2024-03-01 13:37:01 +05:30
successful_referral.html Update ente.io/faq => help.ente.io where possible 2024-03-25 19:26:10 +05:30
web_app_first_upload.html Update ente.io/faq => help.ente.io where possible 2024-03-25 19:26:10 +05:30