Commit d7b3b43c authored by Antonio.Suerte's avatar Antonio.Suerte

Payment API Balance Validation @ Confirm Submission

parent 3c8f7f15
......@@ -474,14 +474,20 @@ class SettlementModelClass extends ModelClassEx {
}
private function validateProcessing(){
print_r($this -> paymentAPIConf);
if($this -> uniqueSubmission == $this -> formName.md5($this -> paymentAPIConf -> middleware_sig_passphrase)){
$this -> setData();
$this -> arrangeFreeParams();
}else{
if($this -> balance < ($this -> debitAmount + $this -> getFeeEx())) {
$this -> invalidFormParams[] = $this -> getMessage(ERROR, 'E_INSUFFICIENT_FUNDS',
array($this -> debitCurrency,
$this -> formatCurrency(($this -> debitAmount + $this -> getFeeEx()), $this -> debitCurrency)));
}
}else
$this -> invalidFormParams[] = "Invalid Submission Identifier!";
if($this -> isLoopData($this -> invalidFormParams))
$this -> setType(TYPE_FAIL);
}
}
private function arrangeFormLink(){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment