This commit is contained in:
nurmuhammet committed 2025-11-16 17:27:33 +05:00
1 parent da5bb6e99b
commit 9d66f21854
1 file changed
+4
@@ -270,6 +270,10 @@ public function checkPayment(string $orderId): array
return $this->paymentFailed('(REQUEST FAILURE)');
}
if ($response['errorCode'] != '0') {
return $this->paymentFailed($response['errorMessage']);
}
return $response['paymentAmountInfo']['depositedAmount'] > 0 // @phpstan-ignore-line
? $this->paymentSuccessful($relatedResource, $paymentHistory, $bankBranch->name)
: $this->paymentFailed(__('Payment has failed'), $paymentHistory, $bankBranch->name);