Skip to content

Commit

Permalink
Email fix for EFT refunds (#1787)
Browse files Browse the repository at this point in the history
  • Loading branch information
seeker25 authored Oct 18, 2024
1 parent e33b888 commit 33af8c3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Refund Notice

A refund of {{ refundAmount }} has been issued to your original payment method. The processing time will be 3-5 business days.
A refund of ${{ '%.2f'|format(refundAmount) }} has been issued to your original payment method. The processing time will be 3-5 business days.

**Business Registry**
BC Registries and Online Services
Expand Down
18 changes: 7 additions & 11 deletions pay-api/src/pay_api/templates/eft_refund_notification_staff.html
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
# {{ state }} Refund Request for Short Name {{ shortname }}
{% set status_display = {
'PENDING_APPROVAL': 'Pending',
'APPROVED': 'Approved',
'DECLINED': 'Declined' }
%}
# {{ status_display.get(status) }} Refund Request for Short Name {{ shortName }}

There is a refund request of ${{ refundAmount }} for short name: {{ shortname }}
{% if state == 'APPROVED' %}
is now approved.
{% elif state == 'DECLINED' %}
is declined with the following message: {{ decline_message }}
{% elif state == 'PENDING' %}
.
{% else %}
.
{% endif %}
The refund request of ${{ '%.2f'|format(refundAmount) }} for short name: {{ shortName }} {% if status_display.get(status) == 'Approved' %}is now approved.{% elif status_display.get(status) == 'Declined' %}is declined with the following message: {{ declineReason }}.{% else %}.{% endif %}

Please review the information using the following link:

Expand Down

0 comments on commit 33af8c3

Please sign in to comment.