Convert C# function to PHP function in one day
$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: #15834675
About the project
Awarded to:
Hi I can convert this code to php kindly contact me and we can discuss it now Regards Vikash Relevant Skills and Experience php c# Proposed Milestones $24 USD - Initial
3 freelancers are bidding on average $25 for this job
using PHP crypto Relevant Skills and Experience C# PHP Proposed Milestones $10 USD - You give me inputs, and I give you outputs that you confirm are correct. $15 USD - Your test in PHP