Skip to content
This repository has been archived by the owner on Jun 12, 2024. It is now read-only.

prochac/eet

Repository files navigation

Go EET Client

Implementation of EET client in Go

Installation

$ go get github/prochac/eet

Example

package main

import (
	"fmt"
	"log"
	"time"
	
	"github.com/prochac/eet"
)

func main(){
    d, _ := eet.NewDispatcher(eet.PlaygroundService,
		"EET_CA1_Playground-CZ00000019.p12",
		"eet",
    )
    r := eet.Receipt{
		UuidZpravy: "49ee3022-de4e-447c-b07f-a550b2378410",
		DicPopl:    "CZ00000019",
		IdProvoz:   273,
		IdPokl:     "/5546/RO24",
		PoradCis:   "0/6460/ZQ42",
		DatTrzby:   time.Now(),
		CelkTrzba:  0,
		Rezim:      eet.RegularRegime,
    }
    response, err := d.SendPayment(r)
    if err != nil {
    	log.Fatal(err)
    }
    fmt.Println("Fik: ", response.Fik)
}

Thanks

Thanks for help and inspiration

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages