Closed burkaslarry closed 5 years ago
2019-07-23 15:50:07.802 32354-32354/abc.test.app.android I/System.out: verify_subscription error : <HttpError 400 when requesting https://www.googleapis.com/androidpublisher/v3/applications/abc.test.app.android/purchases/subscriptions/membership_monthly_apr2019/tokens/%7B%22orderId%22%3A%22GPA.3316-2634-9980-25396%22%2C%22packageName%22%3A%22abc.test.app.android%22%2C%22productId%22%3A%22membership_monthly_apr2019%22%2C%22purchaseTime%22%3A1563259021417%2C%22purchaseState%22%3A0%2C%22purchaseToken%22%3A%22njlokbknpapfkhcoepfidmbk.AO-J1OxkB6c_m_K4V81wIBCj02oU7-357ZVEmGFAGu2aA9beGvB8uGFgpKUSZlektF7-SXV5CfddOz5aNfwkxWg-ReAkiFbYJH8wPISEDBqnn5rgMOn6HS1FhD4gsc9BLtcvGWHTVzqTNJnAij3qs0hY5FovVbRppw%22%2C%22autoRenewing%22%3Atrue%7D?alt=json returned "Invalid Value">
2019-07-23 15:50:07.802 32354-32354/abc.test.app.android I/System.out: verify_subscription error : <HttpError 400 when requesting https://www.googleapis.com/androidpublisher/v3/applications/abc.test.app.android/purchases/subscriptions/membership_monthly_apr2019/tokens/%7B%22orderId%22%3A%22GPA.3316-2634-9980-25396%22%2C%22packageName%22%3A%22abc.test.app.android%22%2C%22productId%22%3A%22membership_monthly_apr2019%22%2C%22purchaseTime%22%3A1563259021417%2C%22purchaseState%22%3A0%2C%22purchaseToken%22%3A%22njlokbknpapfkhcoepfidmbk.AO-J1OxkB6c_m_K4V81wIBCj02oU7-357ZVEmGFAGu2aA9beGvB8uGFgpKUSZlektF7-SXV5CfddOz5aNfwkxWg-ReAkiFbYJH8wPISEDBqnn5rgMOn6HS1FhD4gsc9BLtcvGWHTVzqTNJnAij3qs0hY5FovVbRppw%22%2C%22autoRenewing%22%3Atrue%7D?alt=json returned "Invalid Value">
This mean what token (from receipt) is wrong. See PR #50
Under what condition should the token to be correct ? Given correct code as above
I am currently using a test card (Android) / sandbox environment (IOS). Does it affect the situation that turning our receipt is valid or not?
I am currently using a test card (Android) / sandbox environment (IOS). Does it affect the situation that turning our receipt is valid or not?
https://gist.github.com/ruslux/5760e41241e209f87b89a8f2431360ae
should be fixed with #50
Thanks I am waiting for the update. Great work
When I practice the module to verify my Google subscription purchase , it turns out to be : []( <HttpError 400 when requesting https://www.googleapis.com/androidpublisher/v3/applications/abcd.test.app.adnroid/purchases/subscriptions/membership_monthly_apr2019/tokens/%7B%22orderId%22%3A%22GPA.3316-2634-9980-25396%22%2C%22packageName%22%3A%22gogoyuedu.book.job.news.learn.read%22%2C%22productId%22%3A%22membership_monthly_apr2019%22%2C%22purchaseTime%22%3A1563259021417%2C%22purchaseState%22%3A0%2C%22purchaseToken%22%3A%22njlokbknpapfkhcoepfidmbk.AO-J1OxkB6c_m_K4V81wIBCj02oU7-357ZVEmGFAGu2aA9beGvB8uGFgpKUSZlektF7-SXV5CfddOz5aNfwkxWg-ReAkiFbYJH8wPISEDBqnn5rgMOn6HS1FhD4gsc9BLtcvGWHTVzqTNJnAij3qs0hY5FovVbRppw%22%2C%22autoRenewing%22%3Atrue%7D?alt=json returned "Invalid Value">)
Would you please tell me which module / attribute of GooglePlayVerifier to authorise ?
Here is my code :