This repository has been archived by the owner on Feb 8, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 308
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add email simplate for failed charges
- Loading branch information
Showing
3 changed files
with
36 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{{ ngettext("Your payment failed!", "Your payments failed!", ntippees) }} | ||
|
||
[---] text/html | ||
{{ ngettext( | ||
"We tried to charge your credit card {0} today, to fund your weekly payment to {1}, but it failed.", | ||
"We tried to charge your credit card {0} today, to fund your weekly payments to {1}, but it failed.", | ||
format_currency(exchange.amount, 'USD'), | ||
top_tippee.username if ntippees == 1 else ngettext('{0} and {n} other', '{0} and {n} others', ntippees - 1, top_tippee.username) | ||
) }} | ||
|
||
{{ _("The error message we received from our payment processor is:") }}<pre> | ||
|
||
{{ exchange.note }} | ||
</pre> | ||
|
||
<a href="{{ participant.profile_url+'routes/credit-card.html' }}" style="{{ button_style }}">{{ _("Fix your credit card") }}</a> | ||
|
||
[---] text/plain | ||
{{ ngettext( | ||
"We tried to charge your credit card {0} today, to fund your weekly payment to {1}, but it failed.", | ||
"We tried to charge your credit card {0} today, to fund your weekly payments to {1}, but it failed.", | ||
format_currency(exchange.amount, 'USD'), | ||
top_tippee.username if ntippees == 1 else ngettext('{0} and {n} other', '{0} and {n} others', ntippees - 1, top_tippee.username) | ||
) }} | ||
|
||
{{ _("The error message we received from our payment processor is:") }} | ||
|
||
{{ exchange.note }} | ||
|
||
{{ _("Follow this link to fix your credit card:") }} {{ participant.profile_url+'routes/credit-card.html' }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters