Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
suejung-sentry committed Jan 21, 2025
1 parent 32d7791 commit ccb7265
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion templates/failed-payment.html
Original file line number Diff line number Diff line change
Expand Up @@ -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.
</p>
Expand Down
2 changes: 1 addition & 1 deletion templates/failed-payment.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit ccb7265

Please sign in to comment.