We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 18cf0cf + 379337f commit 9f1d4a0Copy full SHA for 9f1d4a0
src/Support/TransactionBuilder.php
@@ -4,6 +4,7 @@
4
5
use Illuminate\Support\Arr;
6
use Illuminate\Validation\ValidationException;
7
+
8
class TransactionBuilder
9
{
10
/**
@@ -60,7 +61,7 @@ public function findByIdOrCheckoutId($id)
60
61
$transaction_model = config('hyperpay.transaction_model');
62
$transaction = app($transaction_model)->whereId($id)->orWhere('checkout_id', $id)->first();
63
- if(! $transaction){
64
+ if (! $transaction) {
65
throw ValidationException::withMessages([__('invalid_checkout_id')]);
66
}
67
0 commit comments