If you wish to take this over please contact me.
A go implementation for verifying In App Purchases via apple.
http://godoc.org/github.com/Pallinder/go-iap
package main
import (
"fmt"
"github.com/Pallinder/go-iap"
"log"
)
func main() {
receipt, err := goiap.VerifyReceipt("receipt",true) // Uses the sandbox environment
if err != nil {
log.Fatal(err)
}
fmt.Println("Got receipt", receipt)
}
Or even
package main
import (
"fmt"
"github.com/Pallinder/go-iap"
"log"
)
func main() {
receipt, err := goiap.VerifyReceipt("receipt",false)
goiapErr, ok := err.(goiap.ErrorWithCode)
if ok && goiapErr.Code() == goiap.SandboxReceiptOnProd {
receipt, err = goiap.VerifyReceipt("receipt", true)
}
if err != nil {
log.Fatal(err)
}
fmt.Println("Got receipt", receipt)
}