Results 63 comments of richzw

> I got a token from the sandbox environment for server-side validation, but got the following error > > ``` > googleapi: Error 400: Invalid Value, invalid > ``` >...

> > > I got a token from the sandbox environment for server-side validation, but got the following error > > > ``` > > > googleapi: Error 400: Invalid...

@KarineAyrs here is one related issue https://github.com/awa/go-iap/issues/225 Or you may try another function `ParseNotificationV2WithClaim` and then access the jws result directly.

> thanks! one more question - will you upgrade github.com/golang-jwt/jwt/v4 in your project to v5? Thank you very much for your suggestion. I did not notice this upgrade of jwt,...

The errors are custom error, you could find more details from here https://github.com/awa/go-iap/blob/master/appstore/api/error.go. You could fetch the error code through [ErrorCode()](https://github.com/awa/go-iap/blob/master/appstore/api/error.go#L32) @Bevilacqua

Sample codes ``` func (c *APIClient) Verify(ctx context.Context, transactionId string) (interface{}, error) { result, err := c.productionCli.GetTransactionInfo(ctx, transactionId) if err != nil && errors.Is(err, TransactionIdNotFoundError) { result, err = c.sandboxCli.GetTransactionInfo(ctx,...

@erikd234 , Thank you very for your question. The function signature has been updated in the latest version. Please let me know if something incorrect.

The commit 7227c56d3345c3de5dd00d699ea5d9355fa6b229 1e2b720510bd684711de1949482a85f1fd3b3a82 solve this issue

> in the read me we say > > "Validate the receipt One option could be to validate the receipt with the App Store server through GetTransactionInfo API, and then...