mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-07 10:17:30 -04:00
Listen for additional webhooks for gocardless
This commit is contained in:
parent
b398154ebc
commit
c59b7e0187
@ -245,7 +245,7 @@ class GoCardlessPaymentDriver extends BaseDriver
|
|||||||
sleep(1);
|
sleep(1);
|
||||||
|
|
||||||
foreach ($request->events as $event) {
|
foreach ($request->events as $event) {
|
||||||
if ($event['action'] === 'confirmed') {
|
if ($event['action'] === 'confirmed' || $event['action'] === 'paid_out') {
|
||||||
|
|
||||||
nlog("Searching for transaction reference");
|
nlog("Searching for transaction reference");
|
||||||
|
|
||||||
|
@ -579,7 +579,7 @@ class StripePaymentDriver extends BaseDriver
|
|||||||
if(array_key_exists('payment_intent', $transaction))
|
if(array_key_exists('payment_intent', $transaction))
|
||||||
{
|
{
|
||||||
$payment = Payment::query()
|
$payment = Payment::query()
|
||||||
->where('company_id', $request->getCompany()->id)
|
// ->where('company_id', $request->getCompany()->id)
|
||||||
->where(function ($query) use ($transaction) {
|
->where(function ($query) use ($transaction) {
|
||||||
$query->where('transaction_reference', $transaction['payment_intent'])
|
$query->where('transaction_reference', $transaction['payment_intent'])
|
||||||
->orWhere('transaction_reference', $transaction['id']);
|
->orWhere('transaction_reference', $transaction['id']);
|
||||||
@ -589,7 +589,7 @@ class StripePaymentDriver extends BaseDriver
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
$payment = Payment::query()
|
$payment = Payment::query()
|
||||||
->where('company_id', $request->getCompany()->id)
|
// ->where('company_id', $request->getCompany()->id)
|
||||||
->where('transaction_reference', $transaction['id'])
|
->where('transaction_reference', $transaction['id'])
|
||||||
->first();
|
->first();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user