Find Jobs
Hire Freelancers

Convert C# function to php function

$10-30 USD

In Progress
Posted over 6 years ago

$10-30 USD

Paid on delivery
I need this C# code converted to php: public string GetRequestChecksum(string secretKey, string merchantID, string transactionType, long amount, string currency, string merchantReference, string userID) { var checksumString = [login to view URL]("{0}|{1}|{2}|{3}|{4}|{5}", secretKey, merchantID, transactionType, amount, currency, merchantReference); SHA256Managed sha = new SHA256Managed(); //[login to view URL] = [login to view URL]([login to view URL]([login to view URL](checksumString)).Select(h => [login to view URL]("X2")).Aggregate((i, j) => i + j), checksum, [login to view URL]).ToString(); return [login to view URL]([login to view URL](checksumString)).Select(h => [login to view URL]("X2")).Aggregate((i, j) => i + j); } Must produce same result as C# when running in my php plug-in. Sample data for above values is here below: SecretKey: DB3EEEFA-0324-4130-B259-7F43508FBB06 MerchantReference: ESC01UAT1512751543 MerchantID: E33F4561-23EA-431F-A0F6-DD0D62D06B90 TransactionType: Payment Amount: 259900 Currency: ZAR Checksum: BC031D95BF292C65F56B628CD2B7812A2C79A8F6448D2B7A78A3B90E6252F842 To verify that code has been generated correctly here is C#: [login to view URL] = [login to view URL]([login to view URL]([login to view URL](checksumString)).Select(h => [login to view URL]("X2")).Aggregate((i, j) => i + j), checksum, [login to view URL]).ToString();
Project ID: 15834207

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
Convert C# function to php function Relevant Skills and Experience Respected Sir, We have 7+ year exp in php and wordpress. We have expertise in content management system in wordpress. Proposed Milestones $30 USD - Project
$30 USD in 1 day
4.9 (171 reviews)
7.3
7.3
User Avatar
Can be less money than me Relevant Skills and Experience C# PHP Proposed Milestones $15 USD - PHP
$15 USD in 1 day
5.0 (16 reviews)
4.5
4.5
User Avatar
Just doing this project for positive reviews. I am a professional php developer. Relevant Skills and Experience Laravel PHP C# Proposed Milestones $15 USD - At end of project
$15 USD in 1 day
0.0 (0 reviews)
0.0
0.0
User Avatar
A proposal has not yet been provided
$25 USD in 2 days
0.0 (0 reviews)
0.0
0.0
User Avatar
I have 3+ years of experience in PHP,C# Relevant Skills and Experience PHP,MVC,ASP.Net Proposed Milestones $15 USD - Project End
$15 USD in 1 day
0.0 (0 reviews)
0.0
0.0

About the client

Flag of SOUTH AFRICA
London, South Africa
5.0
5
Payment method verified
Member since Apr 19, 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.