<%= render 'common/modal_header', title: 'Edit recurring donation card failure message ' %>

You can edit the email that gets sent to a supporter whenever their recurring donation can't be processed due to a card failure. A table with the payment and card failure details will be added to the bottom of the actual email.

Hi {{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: https://commitchange.com/recurring_donations/123456/edit?t=123abc123abs123abc

<% 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 'components/forms/submit_button', scope: 'card_failure_message' %>