mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-23 20:00:33 -04:00
Minor fixes for Stripe Payment Intent query
This commit is contained in:
parent
0815a0ff69
commit
ca75d0078b
@ -66,11 +66,9 @@ class PaymentIntentWebhook implements ShouldQueue
|
|||||||
{
|
{
|
||||||
$payment = Payment::query()
|
$payment = Payment::query()
|
||||||
->where('company_id', $company->id)
|
->where('company_id', $company->id)
|
||||||
->where(function ($query) use ($transaction) {
|
->where('transaction_reference', $transaction['payment_intent'])
|
||||||
$query->where('transaction_reference', $transaction['payment_intent'])
|
|
||||||
->orWhere('transaction_reference', $transaction['id']);
|
|
||||||
})
|
|
||||||
->first();
|
->first();
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user