mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Fixes for gocardless delayed instant bank payment notificatrion:
This commit is contained in:
parent
6eaf8a290d
commit
d413cb686b
@ -310,7 +310,7 @@ class GoCardlessPaymentDriver extends BaseDriver
|
|||||||
$invoices->each(function ($invoice){
|
$invoices->each(function ($invoice){
|
||||||
|
|
||||||
//if payments exist already, they just need to be confirmed.
|
//if payments exist already, they just need to be confirmed.
|
||||||
if($invoice->payments()->exists){
|
if($invoice->payments()->exists()){
|
||||||
|
|
||||||
$invoice->payments()->where('status_id', 1)->cursor()->each(function ($payment){
|
$invoice->payments()->where('status_id', 1)->cursor()->each(function ($payment){
|
||||||
$payment->status_id = 4;
|
$payment->status_id = 4;
|
||||||
@ -361,8 +361,8 @@ class GoCardlessPaymentDriver extends BaseDriver
|
|||||||
SystemLog::CATEGORY_GATEWAY_RESPONSE,
|
SystemLog::CATEGORY_GATEWAY_RESPONSE,
|
||||||
SystemLog::EVENT_GATEWAY_SUCCESS,
|
SystemLog::EVENT_GATEWAY_SUCCESS,
|
||||||
SystemLog::TYPE_GOCARDLESS,
|
SystemLog::TYPE_GOCARDLESS,
|
||||||
$this->go_cardless->client,
|
$this->client,
|
||||||
$this->go_cardless->client->company,
|
$this->client->company,
|
||||||
);
|
);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user