From 527b1263cefb3f2e3c2ac7744fbc2f2e4d5a1637 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Mon, 16 Sep 2024 09:44:11 +1000 Subject: [PATCH] Minor fixes --- app/PaymentDrivers/BlockonomicsPaymentDriver.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/PaymentDrivers/BlockonomicsPaymentDriver.php b/app/PaymentDrivers/BlockonomicsPaymentDriver.php index 9fb7e876adcd..485ae6d39e18 100644 --- a/app/PaymentDrivers/BlockonomicsPaymentDriver.php +++ b/app/PaymentDrivers/BlockonomicsPaymentDriver.php @@ -65,7 +65,9 @@ class BlockonomicsPaymentDriver extends BaseDriver public function getPaymentByTxid($txid) { - return Payment::whereRaw('BINARY `transaction_reference` LIKE ?', ["%txid: " . $txid . "%"])->firstOrFail(); + return Payment::where('client_id', $this->client->id) + ->whereRaw('BINARY `transaction_reference` LIKE ?', ["%txid: " . $txid . "%"]) + ->firstOrFail(); } public function getCallbackSecret()