Find Jobs
Hire Freelancers

Web development

$10-30 USD

Closed
Posted about 6 years ago

$10-30 USD

Paid on delivery
Hi there I want any one to convert php codes into C#. It is only one simple functionpublic function Process(){ $amount = 1; $phone = '0720068822'; $account='123';$phone2= '254'.substr($phone, 1);$url = '[login to view URL]';$curl = curl_init();curl_setopt($curl, CURLOPT_URL, $url);$app_consumer_key = 'T3PUFNac2pCObhtQgIStX485Depa4bqR';$app_consumer_secret = 'rr3DqquSy3frc3GD';$token='d2GrLikTPafLwVAGt0miKbgDCIZs';curl_setopt($curl, CURLOPT_HTTPHEADER, array('Content-Type:application/json','Authorization:Bearer '.$token)); //setting custom header$timestamp =date('YmdHis');//        dd($timestamp);$passkey = "bfb279f9aa9bdbcf158e97dd71a467cd2e0c893059b10f78e6b72ada1ed2c919";$short_code = "174379";$password = base64_encode($short_code . $passkey . $timestamp);$callback_url="enter your callback url here"';$curl_post_data = array(//Fill in the request parameters with valid values"BusinessShortCode" => $short_code,"Password" => $password,"Timestamp" => $timestamp,"TransactionType" => "CustomerPayBillOnline","Amount" => $amount,"PartyA" => $phone2,"PartyB" => $short_code,"PhoneNumber" => $phone2,"CallBackURL" => $callback_url,"AccountReference" => $account,"TransactionDesc" => "Paybill Online");$data_string = json_encode($curl_post_data);curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);curl_setopt($curl, CURLOPT_POST, true);curl_setopt($curl, CURLOPT_POSTFIELDS, $data_string);$curl_response = curl_exec($curl);$merchant_info=json_decode($curl_response);$merchant_id=$merchant_info->MerchantRequestID;return $merchant_id;}
Project ID: 16621513

About the project

6 proposals
Remote project
Active 6 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
6 freelancers are bidding on average $21 USD for this job
User Avatar
Greetings I am here to convert the code into C++ I have read your description and ready to work accordingly. We Work on client demand. We focus to work on client demand because we believe that you better know the worth of your work so kindly share your budget and deadline. IHave a strong portfolio to show you. Come on Chat so that we may satisfy you once you satisfy then you are welcome to award us a project. thanks Chainz
$25 USD in 1 day
4.7 (32 reviews)
5.0
5.0
User Avatar
Hey! I have got experties in php. please consider have a good day . Thanks!
$15 USD in 1 day
4.9 (5 reviews)
3.3
3.3
User Avatar
Hi! Let me help you with this... I love both PHP and C#, and I’d be honoured to be the person assisting you on this! Kindest regards, Thomas
$14 USD in 1 day
5.0 (1 review)
1.1
1.1
User Avatar
A proposal has not yet been provided
$20 USD in 2 days
0.0 (0 reviews)
0.0
0.0
User Avatar
Success assured
$25 USD in 1 day
0.0 (0 reviews)
0.0
0.0

About the client

Flag of KENYA
Kenya
0.0
0
Member since Apr 3, 2018

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) & Freelancer Online India Private Limited (CIN U93000HR2011FTC043854)
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.