Integration Overview
To help you integrate smoothly with the myPOS Payment Protocol .NET SDK, we've provided a sample app in this repository. Use it as a working reference throughout the setup.
Prerequisites
System Requirements
- .NET Framework version 4.5.2 or later must be installed.
Add SDK Dependency
To start using the SDK:
- Open your project in Visual Studio.
- In the Solution Explorer, right-click your project and select Add Reference.
- In the dialog that appears:
- Browse to the downloaded file:
myPOSTerminal.dll - Select it and confirm by clicking OK.
- Browse to the downloaded file:
- You should now see
myPOS Terminallisted under the References section of your project.
SDK Initialization
Before you can use the SDK methods, you need to initialize the SDK by creating a myPOSTerminal object.:
using myPOS;
myPOSTerminal terminal = new myPOSTerminal();
Optional Configuration
You can customize the terminal’s receipt mode and language settings (optional):
terminal.SetReceiptMode((ReceiptMode)cmbReceiptMode.SelectedItem);
terminal.SetLanguage(Language.English);
If not set, the device will use the default settings pre-configured on your myPOS terminal.
Connecting to the myPOS Terminal
Every time the terminal is plugged in, you need to:
- Identify the correct COM Port (example: "COM3").
- Use the following method to initialize the connection:
terminal.Initialize((string)"COM3"); // This COM number is used as an example