diff --git a/app/views/donation_mailer/donor_payment_notification.html.erb b/app/views/donation_mailer/donor_payment_notification.html.erb index 25c46d46..0a4e3d04 100644 --- a/app/views/donation_mailer/donor_payment_notification.html.erb +++ b/app/views/donation_mailer/donor_payment_notification.html.erb @@ -22,4 +22,10 @@
<%= render 'donation_mailer/donation_payment_table', donation: @donation, charge: @donation.charges.last %> +<% if @donation.recurring_donation %> +

+ <%= t('mailer.donations.donor_receipt.recurring_donation_cancel_modify_html', management_url: edit_recurring_donation_url(@donation.recurring_donation, {t: @donation.recurring_donation.edit_token}))%> +

+<% end %> + <%= render 'emails/powered_by' %> diff --git a/config/locales/en.yml b/config/locales/en.yml index 903bffd6..ae806a88 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -29,6 +29,7 @@ en: transfer_label_html: "Donation %{nonprofit_statement}." oneoff_donation_html: "Your donation towards %{nonprofit_name} was successful!" recurring_donation_html: "Your recurring donation towards %{nonprofit_name}, started on %{start_date}, has been successfully paid." + recurring_donation_cancel_modify_html: "If you need to update your card or cancel your recurring donation, please follow this link: %{management_url}" donor_direct_debit_notification: subject: "Donation receipt for %{nonprofit_name}" transfer_info_html: "This transfer will appear on your bank statement as %{label}"