Commit 9d5939a9 authored by Antonio.Suerte's avatar Antonio.Suerte

Help2Pay Migration [Withdrawal Webhook Validation Enhancement]

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