Implementation of EET client in Go
$ go get github/prochac/eet
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 for help and inspiration