Skip to content
Advertisement

Unable to fetching subscription detail from Google Play Android Developer API

I am trying to use Google APIs Client Library for Java to get information about user’s subscriptions purchased in my android app. Then I got this error:

JavaScript

I am trying those steps:

  1. Go to https://console.cloud.google.com
  2. Create a project (or select existing project)
  3. Create a service account with role Pub/Sub Admin
  4. Go to https://console.cloud.google.com/apis/library and search for “Google Play Android Developer API”
  5. Enable that API
  6. Go to https://play.google.com/apps/publish
  7. Go to Settings > Developer account > API Access
  8. Link the project that you created in step 2
  9. The service account will appear that you created in step 3
  10. Grant access to it with Finance permission to the app in play console
  11. Wait for at least 24 hours for changes to take effect.

I am trying this code :

JavaScript

I am using testing In-App Purchase mode.

I want to fetch the latest subscription receipt after renewing subscription plan.

Advertisement

Answer

I have checked after 24 hours there was an error. But after that, I have checked again after two days there was no error and the data has been received.

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement