Menu

C#.net

Updated time: Jul 23, 2020 , 10:51 (UTC+03:00)

PayCEC provides a C# sample code, includes integration and configuration information.

1. Download C# Example Code

Download link: paycec_csharp_2.1.zip Checksum SHA1: 31A6C4587261D4FB1EDF0EDAD7F47610501EF9BB

2. Integrating

You’ll need to have the following before going any further:

  • A PayCEC merchant account.
  • .NET Framework: >= 4.0.
  • Our C# example code. (download at step 1)

3. Download library:

Newtonsoft.Json and Restsharp to get it worked.Import it from here: 

    * https://www.nuget.org/packages/newtonsoft.json/

    * https://www.nuget.org/packages/RestSharp/

Choose the right version for .NET Framework

Example with Visual Studio: Tools > Nuget Package Manager > Package Manager Console /Install-Package Newtonsoft.Json -Version x.x.x

In wpc_csharp folder, open 2 files: Initiate.aspx.cs and Return.aspx.cs and change your the config by your merchant config values.

Then, run the demo to understand the payment flow.

Related: Payment Gateway Integration Developer (Detailed version)

How can we help?

How can we help? All information entered on this form will be kept strictly confidential and subject to our privacy policy once received by us. Your transaction will be secured using SSL/TLS encryption.