Skip to content

Commit

Permalink
Refund validation fix
Browse files Browse the repository at this point in the history
  • Loading branch information
krzGablo committed Dec 10, 2024
1 parent caebcf8 commit 0b5feec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Model/TpayPayment.php
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit 0b5feec

Please sign in to comment.