Web development $10-30 USD $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? Email address Apply for similar jobs Benefits of bidding on Freelancer Set your budget and timeframe
It's free to sign up and bid on jobs
6 freelancers are bidding on average $21 USD for this job
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) Hey! I have got experties in php. please consider have a good day . Thanks!
$15 USD in 1 day
4.9 (5 reviews) 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) A proposal has not yet been provided
$20 USD in 2 days
0.0 (0 reviews) $25 USD in 1 day
0.0 (0 reviews)