1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 13:12:50 +01:00

Minor fixes for Stripe Payment Intent query

This commit is contained in:
David Bomba 2022-11-30 07:37:50 +11:00
parent 0815a0ff69
commit ca75d0078b

View File

@ -66,11 +66,9 @@ class PaymentIntentWebhook implements ShouldQueue
{
$payment = Payment::query()
->where('company_id', $company->id)
->where(function ($query) use ($transaction) {
$query->where('transaction_reference', $transaction['payment_intent'])
->orWhere('transaction_reference', $transaction['id']);
})
->where('transaction_reference', $transaction['payment_intent'])
->first();
}
else
{