Shopping Cart Operations > Support
Extension Development Doubt
(1/1)
ramya:
Hi Admin,
Please help me out in understanding the code below and develop new extension required for me.
This i found it it 2checkout extension controller page.
what is the use of this? can i modify it and use as checksum validation send by a payment gateway?
// hash check
if (!md5($this->request->post['sale_id'] . $this->config->get('ccavenue_account') . $this->request->post['invoice_id'] . $this->config->get('ccavenue_secret')) == strtolower($this->request->post['md5_hash'])) {
exit;
}
ramya:
Please reply me as soon as possible
abolabo:
--- Quote from: ramya on July 31, 2013, 05:10:44 AM ---Hi Admin,
Please help me out in understanding the code below and develop new extension required for me.
This i found it it 2checkout extension controller page.
what is the use of this? can i modify it and use as checksum validation send by a payment gateway?
// hash check
if (!md5($this->request->post['sale_id'] . $this->config->get('ccavenue_account') . $this->request->post['invoice_id'] . $this->config->get('ccavenue_secret')) == strtolower($this->request->post['md5_hash'])) {
exit;
}
--- End quote ---
as i understood correctly it's a check of request from 3d party API.. they send md5 hash and extension's controller treid to generate it's own md5 hash which based on it's credentials(invoice_id, sale id etc)...
Navigation
[0] Message Index
Go to full version