Skip to content

Latest commit

 

History

History
33 lines (23 loc) · 614 Bytes

README.md

File metadata and controls

33 lines (23 loc) · 614 Bytes

Ingenico POS

Low level communication for Ingenico POS

Installation

To install the library, use go get:

go get github.com/MihaiCraciun88/ingenico

Usage

import (
	"github.com/MihaiCraciun88/ingenico"
)

func main() {
	pos := ingenico.NewPOS("COM3", 9600)
	defer pos.Close()

	pos.SendMessage(ingenico.NewSale(100)) // 1 RON
	pos.WaitForResponse()
}

Contribution

Feel free to contribute by creating issues, submitting pull requests, or improving the documentation.

License

This project is licensed under the MIT License. See the LICENSE file for more details.