Sorry for the message, I hope I’m not making a duplicate topic.
I’m currently implementing in app purchase verification inside a golang module.
I used a plugin for the IOS part, without any problems. https://github.com/awa/go-iap -> link to it.
Then when I tried to use the Android part, things started to become tricky. I used the sample with dummy values. No problem for compiling with Docker, but docker-compose up is throwing me errors when nakama try to load the golang module. Because it’s said the cause is different version of package, I checked the setup, I am using Golang 1.13 (tried updating to 1.14), Nakama 2.7.0, nakama-common 1.0.0
I also tried without the package, by using directly with google functions, but the same error is thrown right now.
So just by using this line : conf, err := google.JWTConfigFromJSON(byte(jsonKey), “https://www.googleapis.com/auth/androidpublisher”) and importing : “golang.org/x/oauth2/google”, I got the same error from docker. Do you have any idea of the possible mismatch here?
Thank in advance for the answer.
PS : here is the docker error
"msg":"Could not open Go module","path":"/nakama/data/modules/baccarat.so","error":"plugin.Open(\"/nakama/data/modules/baccarat\"): plugin was built with a different version of package golang.org/x/net/context/ctxhttp","stacktrace":"github.com/heroiclabs/nakama/v2/server.openGoModule\n\tgithub.com/heroiclabs/nakama/v2@/server/runtime_go.go:1899\ngithub.com/heroiclabs/nakama/v2/server.NewRuntimeProviderGo\n\tgithub.com/heroiclabs/nakama/v2@/server/runtime_go.go:1823\ngithub.com/heroiclabs/nakama/v2/server.NewRuntime\n\tgithub.com/heroiclabs/nakama/v2@/server/runtime.go:442\nmain.main\n\tmain.go:130\nruntime.main\n\truntime/proc.go:203"}