awa / go-iap

go-iap verifies the purchase receipt via AppStore, GooglePlayStore, AmazonAppStore and Huawei HMS.
MIT License
838 stars 244 forks source link

How to parse V2Notification from signedPayload #288

Open KarineAyrs opened 1 week ago

KarineAyrs commented 1 week ago

Hello! Thanks for library, but I can't figure out how to parse signedPayload to get notification, can you help me with that?

richzw commented 1 week ago

@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.

KarineAyrs commented 1 week ago

thanks! one more question - will you upgrade github.com/golang-jwt/jwt/v4 in your project to v5?

richzw commented 1 week ago

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, and will upgrade the jwt after fully testing.