Skip to content

Commit

Permalink
[Merton] Set up locale in payment checking.
Browse files Browse the repository at this point in the history
Without this, the email sending would fail.
  • Loading branch information
dracos committed Aug 22, 2024
1 parent e821a89 commit 555d7e1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions perllib/FixMyStreet/Script/Merton/SendWaste.pm
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ sub check_payments {
});
while (my $row = $problems->next) {
my $cobrand = $row->get_cobrand_logged;
$cobrand->set_lang_and_domain($row->lang, 1);
my $query_id = $row->get_extra_metadata('scpReference') or next; # Problem fetching unique ID from payment provider
my ($error, $reference) = $cobrand->cc_check_payment_and_update($query_id, $row);
if ($reference) {
Expand Down

0 comments on commit 555d7e1

Please sign in to comment.