Transaction verification received on my dashboard, code are here, this ia callback message , i want this call back message to reply back to payment gateway. , Please who want to start now pm me
Auto-Verification of transaction successful.
Cost of product is NRs. 1584 but user has paid only NRs. 1. Might be the fraud transaction!
/**
* Verify the transaction with eSewa
* @param $url
* @param $request
* @return string
*/
protected function verifyTransaction($url, $request)
{
$curl = curl_init($url);
curl_setopt($curl, CURLOPT_POST, true);
curl_setopt($curl, CURLOPT_POSTFIELDS, $request);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_HEADER, false);
curl_setopt($curl, CURLOPT_TIMEOUT, 30);
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
$response = curl_exec($curl);
curl_close($curl);
if ($this->config->get('esewa_debug')) {
$this->log->write('eSewa :: IPN REQUEST: ' . $request);
$this->log->write('eSewa :: IPN RESPONSE: ' . $response);
}
$xmlParser = new SimpleXMLElement($response);
$verificationResponse = strtoupper(trim($xmlParser->response_code));
return $verificationResponse;
}
/**
* Checks if the transaction if fraud and returns the fraud message
* @param $order_info
* @param $paidAmount
* @return string
*/
protected function checkFraud($order_info, $paidAmount)
{
$amountToBePaid = $this->currency->format($order_info['total'], 'NPR', false, false);
$fraudMessage = '';
if ((int)$amountToBePaid !== (int)$paidAmount) {
$fraudMessage = '<br/><span style="color:#F00">Cost of product is <strong> NRs. ' . $amountToBePaid . '</strong> but user has paid only <strong> NRs. ' . $paidAmount . '</strong>. Might be the fraud transaction!</span>';
}
return $fraudMessage;
}
}
I have been in the field of most creative ideas ( WEB ) for more than 5 years. Having a vast experience to design and developer web based applications using the latest and trending technologies.
I have sound knowledge of web technologies like :
Framework : codeigniter, cakephp
CMS : wordpress, opencart.
with fluent coordination of above with :
MySql, jQuery, Javascript, ajax, curl , JSON,
A great work is the best to get the worth of your efforts.
Please be together to make your idea a reality and showcase the world :- the true path of your success .
Regards
Punit
Hello Sir, We have gone through the details you have provided and we have already worked on a similar project before and can deliver as u have mentioned and would be pleased to work on this with you to deliver the results that you have expected and we have already worked on a similar project before and can deliver as u have mentioned
We are sure you will not be disappointed if you give us this opportunity. Our team is experienced, creative & efficient enough to get your job done well. We have an impeccable record and all our clients enjoy working with us, we are sure that you will too, our prices are cheapest in market.
[Removed for encouraging offsite communication which is against our Terms and Conditions.] for further discussion about the project
I am ready to discuss with you
with best Regards