|
@@ -57,7 +57,7 @@ |
|
|
block discarded – undo |
|
57
|
57
|
|
|
58
|
58
|
if ($payload['type'] === 'InvoiceSettled') { |
|
59
|
59
|
// Check if we have the invoice_id in payments table and if we do, update the user account |
|
60
|
|
- $checkOrder = Payment::query()->where('invoice_id', '=', $payload['invoiceId'])->where('payment_status', '=', 'Settled')->where(function ($query) { |
|
|
60
|
+ $checkOrder = Payment::query()->where('invoice_id', '=', $payload['invoiceId'])->where('payment_status', '=', 'Settled')->where(function($query) { |
|
61
|
61
|
return $query->where('invoice_status', 'Pending')->orWhereNull('invoice_status'); |
|
62
|
62
|
})->first(); |
|
63
|
63
|
if ($checkOrder !== null) { |
Please login to merge, or discard this patch.