This commit is contained in:
2025-11-16 17:27:33 +05:00
parent da5bb6e99b
commit 9d66f21854

View File

@@ -270,6 +270,10 @@ class OnlinePaymentRepository
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);