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