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

Help2Pay Migration [Withdrawal Webhook Validation Enhancement]

parent 435afa02
......@@ -119,7 +119,6 @@ class H2PWithdrawalWebhook extends System {
$bankCode = $this -> getColumnData($result, COLUMN_RECEIPT_BANK_NAME);
$language = $this -> getColumnData($result, COLUMN_LANGUAGE);
if(strcasecmp($this -> transactionKey, $this -> getColumnData($result, "api_key")) === 0){
$param = [];
if($this -> memberCode == $memberCode){
......@@ -154,21 +153,20 @@ class H2PWithdrawalWebhook extends System {
VAR_CS_MAIL_ADDRESS
);
$this -> logEvent("nfail status:\r\n\r\n{$response}", VAL_INT_2);
$this -> logEvent("nFailed Status:\r\n\r\n{$response}", VAL_INT_2);
break;
default:
//error, status not valid
$this -> logEvent("Error status code invalid:\r\n\r\n{$response}\r\n{$this -> status}", VAL_INT_2);
$this -> logEvent("Invalid Status Code:\r\n\r\n{$response}\r\n{$this -> status}", VAL_INT_2);
break;
}
}else{
//error, member code not valid
$this -> logEvent("Error member code invalid: {$memberCode}", VAL_INT_2);
$this -> logEvent("Invalid Member Code: {$this -> memberCode}", VAL_INT_2);
}
}else{
//error, status not valid
$this -> logEvent("Key invalid:\r\n\r\n{$response}", VAL_INT_2);
}
//error, transaction num not valid
$this -> logEvent("Invalid Transaction Number:\r\n\r\n{$this -> transactionNum}", VAL_INT_2);
}
}
}
......
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