%- # License: AGPL-3.0-or-later WITH WTO-AP-3.0-or-later
# Full license explanation at https://github.com/houdiniproject/houdini/blob/master/LICENSE -%>
Hi <%= @donation.supporter.name %>,
<% if @nonprofit.card_failure_message_top %>
<%= @nonprofit.card_failure_message_top.html_safe %>
<% else %>
<%= render 'components/email/default_card_failure_message_top',
npo_name: @nonprofit.name %>
<% end %>
Kindly take a moment to update your credit card information using this secure link:
<% url = edit_recurring_donation_url(@donation.recurring_donation, {t: @donation.recurring_donation.edit_token}) %>
<%= url %>
<% if @nonprofit.card_failure_message_bottom %>
<%= @nonprofit.card_failure_message_bottom.html_safe %>
<% else %>
<%= render 'components/email/default_card_failure_message_bottom',
npo_name: @nonprofit.name %>
<% end %>
<%= render 'failed_recurring_donation_table', donation: @donation, charge: @charge %>
<%= render 'recurring_donation_table', donation: @donation %>
<%= render 'nonprofits/email/footer', nonprofit: @nonprofit, hide_unsubscribe: true %>
<%= render 'emails/powered_by' %>