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:
parent
0815a0ff69
commit
ca75d0078b
@ -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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user