Fixes for gocardless events

This commit is contained in:
David Bomba 2022-06-02 07:33:06 +10:00
parent 073fb54035
commit 38b77e72fe
2 changed files with 1 additions and 3 deletions

View File

@ -240,8 +240,6 @@ class RecurringInvoice extends BaseModel
}
/*
As we are firing at UTC+0 if our offset is negative it is technically firing the day before so we always need
to add ON a day - a day = 86400 seconds

View File

@ -245,7 +245,7 @@ class GoCardlessPaymentDriver extends BaseDriver
sleep(1);
foreach ($request->events as $event) {
if ($event['action'] === 'confirmed' || $event['action'] === 'paid_out') {
if ($event['action'] === 'confirmed' || $event['action'] === 'paid_out' || $event['action'] === 'paid') {
nlog("Searching for transaction reference");