I need this 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);
if (![login to view URL](userID)) checksumString += '|' + userID;
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();
Hello sir. I 've read your post and so very interested in your job.
I 'm working in part of coding and software developing for over 6 years.
I have much experiences in developing software and programming.
I major in C#,ASP.NET(MVC),PHP(Laravel & Yii Frame work, OpenCart), Web scrapping,web scrapy, Python(Django), HTML5, Javascript and Jqeury.
I can offer you my projects before.
Then you can trust me and check mine.
Please let us contact and make a good friendship.
Thanks.
Hello?
I am very interesting in your project.
I checked your details carefully. i can do this in a short time with best quality
I am expert in c#, php, javascript, jquery, etc
I checked the code and it is possible
Please contact me
I will try my best for you
Let discuss more details together on chat
I will wait you
Best regards
Hey !
I'm SAYAN PROGRAMMER
I've reviewed your complete job description, and I fulfill all the qualifications required for this project.
I have more than 15 years of experience in this field.
I am sure if you will respond me then I will be able to explain my skills as well.
I always try to provide good quality work to my clients.
My key skills are:
C #, C + +, C programming, PHP, Software Architecture and much more.
Looking forward to work with you on this project.
THANKS
Regards
SAYAN PROGRAMMER
Hello Sir, I could easily convert this code to PHP.
PM for further details. Thanks.
Relevant Skills and Experience
C programming
PHP
HTML
Wordpress
CSS
Proposed Milestones
$200 USD - Project Cost