Giter Site home page Giter Site logo

portalum / portalum.zvt.easypay Goto Github PK

View Code? Open in Web Editor NEW
14.0 2.0 6.0 74 KB

Tool to start a payment process on a payment terminal via the zvt protocol

License: MIT License

C# 100.00%
zvt-protocol zvt-payment zvt700 dotnet point-of-sale zvt windows

portalum.zvt.easypay's Introduction

Portalum.Zvt.EasyPay

If you are looking for a simple way to automatically transfer the amount to be paid to your payment terminal, then you have come to the right place. EasyPay allows you to start a payment at the payment terminal with the passing of the amount. It is important that your payment terminal supports the ZVT protocol.

Portalum.Zvt.EasyPay

Portalum.Zvt.EasyPay.exe --amount 1.23

Installing and running EasyPay

To use the tool, the following steps must be performed

Configuration

The configuration of the payment terminal IpAddress and the Port must be set in the appsettings.json.

{
  "IpAddress": "192.168.100.20",
  "Port": 20007
}

ReturnCodes

It can be easily checked via the ReturnCode whether the payment process was successful.

ReturnCode Status Description
0 Successful Payment successful
-1 Error Payment not successful
-2 Error Command line parameter invalid
-3 Error Configuration file not available
-4 Error Cannot connect
-5 Error Application close by user

Troubleshooting

A log file is automatically created with all important information about the payment process.
You find all log lines in the default-yyyyMMdd.log file.

Examples

Start payment

java

var processBuilder = new ProcessBuilder();
processBuilder.command("Portalum.Zvt.EasyPay.exe", "--amount", "1.23");
var process = processBuilder.start();
var returnCode = process.waitFor();

powershell

$process = Start-Process Portalum.Zvt.EasyPay.exe -WindowStyle Hidden -ArgumentList "--amount 1.23" -PassThru -Wait
$process.ExitCode

windows cmd

start /w Portalum.Zvt.EasyPay.exe --amount 1.23
echo %errorlevel%

portalum.zvt.easypay's People

Contributors

tinohager avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.