Find Jobs
Hire Freelancers

reply back transaction verification

$10-30 USD

Closed
Posted almost 7 years ago

$10-30 USD

Paid on delivery
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; } }
Project ID: 14101598

About the project

9 proposals
Remote project
Active 7 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
9 freelancers are bidding on average $39 USD for this job
User Avatar
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
$25 USD in 1 day
5.0 (5 reviews)
1.5
1.5
User Avatar
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
$28 USD in 6 days
0.0 (1 review)
0.0
0.0

About the client

Flag of UNITED STATES
Falls Church, United States
5.0
1
Member since Jul 1, 2010

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.