From ccb7265bea2a013f7a31d8329e174e5776e3b62f Mon Sep 17 00:00:00 2001 From: Suejung Shin Date: Tue, 21 Jan 2025 14:47:10 -0800 Subject: [PATCH] cleanup --- templates/failed-payment.html | 6 +++++- templates/failed-payment.txt | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/templates/failed-payment.html b/templates/failed-payment.html index 93e12155c..78b730dd0 100644 --- a/templates/failed-payment.html +++ b/templates/failed-payment.html @@ -55,7 +55,11 @@ US Bank Account {% if bank_name %} from {{ bank_name }}{% endif %} {% endif %} - {% if last_four %} ending in {{ last_four }}{% endif %}. + {% if is_us_bank_account and bank_last_four %} + ending in {{ bank_last_four }} + {% elif is_credit_card and last_four %} + ending in {{ last_four }} + {% endif %}. Please take a moment to double check your payment information to ensure your account continues to run smoothly.

diff --git a/templates/failed-payment.txt b/templates/failed-payment.txt index 896734c68..84db2e0e6 100644 --- a/templates/failed-payment.txt +++ b/templates/failed-payment.txt @@ -1,6 +1,6 @@ Your ${{ amount }} payment to Functional Software, Inc, dba Sentry has failed. -We were unable to process your {% if card_type %}{{ card_type }}{% elif is_credit_card %}card{% elif is_us_bank_account %}US Bank Account{% if bank_name %} from {{ bank_name }}{% endif %}{% endif %}{% if last_four %} ending in {{ last_four }}{% endif %}. Please take a moment to double check your payment information to ensure your account continues to run smoothly. +We were unable to process your {% if card_type %}{{ card_type }}{% elif is_credit_card %}card{% elif is_us_bank_account %}US Bank Account{% if bank_name %} from {{ bank_name }}{% endif %}{% endif %}{% if bank_last_four %} ending in {{ bank_last_four }}{% elif last_four %} ending in {{ last_four }}{% endif %}. Please take a moment to double check your payment information to ensure your account continues to run smoothly. In most cases, a payment might fail due to: - An expired card