Skip to content
This repository was archived by the owner on May 5, 2025. It is now read-only.

Commit ccb7265

Browse files
cleanup
1 parent 32d7791 commit ccb7265

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

templates/failed-payment.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,11 @@
5555
US Bank Account
5656
{% if bank_name %} from {{ bank_name }}{% endif %}
5757
{% endif %}
58-
{% if last_four %} ending in {{ last_four }}{% endif %}.
58+
{% if is_us_bank_account and bank_last_four %}
59+
ending in {{ bank_last_four }}
60+
{% elif is_credit_card and last_four %}
61+
ending in {{ last_four }}
62+
{% endif %}.
5963
Please take a moment to double check your payment information
6064
to ensure your account continues to run smoothly.
6165
</p>

templates/failed-payment.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Your ${{ amount }} payment to Functional Software, Inc, dba Sentry has failed.
22

3-
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.
3+
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.
44

55
In most cases, a payment might fail due to:
66
- An expired card

0 commit comments

Comments
 (0)