Käynnissä

Convert C# function to php function

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();

Taidot: C# -ohjelmointi, PHP

Näytä lisää: Convert Several Excel Formulas to C# Code -- 2, convert c# to php or any linux runnable language, convert c to php or any linux runnable language, url convert seo php function, convert links php function, php function convert text href link, php function convert links block, php function convert valid url, convert html plain text php function, php function convert html, php function convert html wiki, php function convert url text links, php function find convert address link, php function convert http link php text, php function convert links href, php function convert url html link, php function convert http links, php function convert link, convert python php, upload convert flv php

Tietoa työnantajasta:
( 5 arvostelua ) London, United Kingdom

Projektin tunnus: #15834207

7 freelanceria on tarjonnut keskimäärin %project_bid_stats_avg_sub_26% %project_currencyDetails_sign_sub_27% tähän työhön

$25 USD 1 päivässä
(78 arvostelua)
6.9
WebXcellance

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 Lisää

$30 USD 1 päivässä
(134 arvostelua)
6.7
alidiep

Can be less money than me Relevant Skills and Experience C# PHP Proposed Milestones $15 USD - PHP

$15 USD 1 päivässä
(16 arvostelua)
4.3
$35 USD 2 päivässä
(0 arvostelua)
0.0
SNMCoders

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 1 päivässä
(0 arvostelua)
0.0
NashGetch

A proposal has not yet been provided

$25 USD 2 päivässä
(0 arvostelua)
0.0
premkumarsselvam

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 1 päivässä
(0 arvostelua)
0.0