Page MenuHomePhabricator

Recurring notification email text showing subsequent donation in USD when donation was submitted in GBP
Closed, ResolvedPublic1 Estimated Story Points

Description

@Pcoombe reported this and I have confirmed myself locally submitting a donation in GBP using 'variant=upsell'

It looks like something is misbehaving in the {{ (currency ~ " " ~ amount) | l10n_currency(locale) }} call within the recurring_notification.en.html template rendering within https://gerrit.wikimedia.org/g/wikimedia/fundraising/crm/+/refs/changes/10/539210/7/sites/all/modules/thank_you/templates/html/recurring_notification.en.html#6

I also remember this patch went live which *shouldn't* be related but it touches something similar so it might be worth looking at if nothing obvious stands out https://gerrit.wikimedia.org/r/#/c/wikimedia/fundraising/crm/+/540232/

Event Timeline

The 2nd email is sending $msg['currency'] when it should be sending $msg['original_currency'] to the template.

I just set up a GBP 1.75 recurring upsell donation. And the notification email now says that it's for £ 2.26, which is the USD equivalent but with GBP localisation! This is wrong, and definitely a blocker to testing this outside of the US.

I checked in the civicrm_contribution_recur table and my donation is correctly recorded as GBP 1.75 there.

Change 549209 had a related patch set uploaded (by Ejegg; owner: Ejegg):
[wikimedia/fundraising/crm@master] Use amount to match currency in recur notification

https://gerrit.wikimedia.org/r/549209

Change 549209 merged by jenkins-bot:
[wikimedia/fundraising/crm@master] Use amount to match currency in recur notification

https://gerrit.wikimedia.org/r/549209

Cstone set the point value for this task to 1.