Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add ACH to stripe payment emails #1020

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion templates/auto-refund.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ <h2>Sorry to see you go, {{ name }}</h2>
</svg>

<p>
A ${{ amount }} auto refund has been processed and will be credited to your {% if card_type %}{{ card_type | capitalize }}{% else %}card{% endif %}{% if last_four %} ending in {{ last_four }}{% endif %} shortly.
A ${{ amount }} auto refund has been processed and will be credited to 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 %} shortly.
</p>
</div>
<p>
Expand Down
2 changes: 1 addition & 1 deletion templates/auto-refund.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Your subscription has been successfully canceled. Your account has been returned to our one-seat developer plan. We appreciate your business and welcome you back anytime.

A ${{ amount }} auto refund has been processed and will be credited to your {% if card_type %}{{ card_type | capitalize }}{% else %}card{% endif %}{% if last_four %} ending in {{ last_four }}{% endif %} shortly.
A ${{ amount }} auto refund has been processed and will be credited to 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 %} shortly.

If you have any questions or need help, please contact us at [email protected]
21 changes: 16 additions & 5 deletions templates/failed-payment.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,22 @@
color: black;
"
>
We were unable to process your {% if card_type %}{{ card_type |
capitalize }}{% else %}card{% 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 | capitalize }}
{% elif is_credit_card %}
card
{% elif is_us_bank_account %}
US Bank Account
{% if bank_name %} from {{ bank_name }}{% endif %}
{% 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>
<p style="width: 100%; padding: 35px 0px; text-align: center">
<a
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 | capitalize }}{% else %}card{% 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
Loading