From 0b5feecf214840d13c0c29b4cab8d258bdf40d8c Mon Sep 17 00:00:00 2001 From: kGablo Date: Tue, 10 Dec 2024 12:51:35 +0100 Subject: [PATCH] Refund validation fix --- Model/TpayPayment.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Model/TpayPayment.php b/Model/TpayPayment.php index 3b13933..aac726e 100755 --- a/Model/TpayPayment.php +++ b/Model/TpayPayment.php @@ -267,7 +267,7 @@ public function refund(InfoInterface $payment, $amount) $refundResult = $refundService->makeRefund($payment, (float) $amount); try { - if ($refundResult['result'] === 'success' && $refundResult['status'] === 'correct') { + if ('success' === $refundResult['result'] && 'correct' === $refundResult['status']) { $payment ->setTransactionId(Transaction::TYPE_REFUND) ->setParentTransactionId($payment->getParentTransactionId())