Listen for additional webhooks for gocardless

This commit is contained in:
= 2022-05-17 07:30:41 +10:00
parent b398154ebc
commit c59b7e0187
2 changed files with 3 additions and 3 deletions

View File

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

View File

@ -579,7 +579,7 @@ class StripePaymentDriver extends BaseDriver
if(array_key_exists('payment_intent', $transaction))
{
$payment = Payment::query()
->where('company_id', $request->getCompany()->id)
// ->where('company_id', $request->getCompany()->id)
->where(function ($query) use ($transaction) {
$query->where('transaction_reference', $transaction['payment_intent'])
->orWhere('transaction_reference', $transaction['id']);
@ -589,7 +589,7 @@ class StripePaymentDriver extends BaseDriver
else
{
$payment = Payment::query()
->where('company_id', $request->getCompany()->id)
// ->where('company_id', $request->getCompany()->id)
->where('transaction_reference', $transaction['id'])
->first();
}