wip
This commit is contained in:
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);
|
||||
|
||||
Reference in new issue
Block a user