Project in C# (.NET)

At the end of the page, you will find four files:

  1. csharp-marketpay-pos-api-20.1-documentation

    Documentation on C# integration

  2. ecrdrv-simulator-v21.1.0.0-dotnet-4.8-x86.zip

    ECR simulator

  3. marketpay-pos-simulator-gui-17.0.0.1_with_driver-5.6.26-7_dotnet_framework-4.6.2_x86

    ECR simulator source code, to have code examples for ECR integration

  4. ecrdrv-csharp-v20.1.0.zip

    libraries to proceed with ECR integration

The ECR driver consists of 3 library files:

  • marketpay-driver-cpp.dll (.NET wrapper on core library, written in C++)

  • marketpay_pos_api.dll (C# driver interface, API definitions)

  • marketpay-pos-driver.dll (C# library which is C# to C++ converter)

The marketpay_pos_api.dll (API definitions) and marketpay-pos-driver.dll (C# wrapper on core) are .NET libraries so they both have to be included into project as DLL library reference in VisualStudio.

There is also 3rd necessary library marketpay-driver-cpp.dll which is Core library, written in C++. This file is not needed at build time because it's dynamically linked in runtime. But it has to be reached by .exe program.

The simplest way is to copy this file into directory where an .exe app is located. There are also two alternatives

  • PATH environmental variable

  • Put library into system directory like C:/Windows/System32.

The last two options are more difficult because of access permission or require the OS to restart.

ecrdrv-csharp-v20.1.0
975.58 KB
csharp-marketpay-pos-api-20-documentation
1.87 MB
marketpay-pos-simulator-gui-v17.0.0.1-src
48.12 KB
ecrdrv-simulator-21.1.0.0-x86
1.07 MB