Hello I need your help I've been working on this since yesterday with no success at all. I'm creating an MD5 string for token value but it's not passing at all below are the information. Must be a hex-encoded MD5 HASH (32 digit hexadecimal number) of a concatenation of the following parameter values separated by”:” (values should be in lower case)
First, values should be converted to lower case: Parameter: merchant_id value: test Parameter: amount value: 15.25 Parameter: currency value: usd Parameter: key value: alfa
Then their values are contacted: test:15.25:aed:alfa
what I've did is the following codes: a. md5($this->data['merchant_id'] . $this->data['amount'] . $this->data['currency'] . $this->data['key'])
b. md5($this->data['merchant_id'] . ':; . $this->data['amount'] . ':; . $this->data['currency'] . ':; . $this->data['encryption_key'])
c. $hash = $this->request->post['merchant_id'];
$hash .= $this->request->post['amount'];
$hash .= $this->request->post['currency'];
$hash .= $this->request->post['key'];
None of them is working can anybody help me please and thank you!