Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

146
Views
Permission Issue when trying to verify Google Play Subscription with NodeJS google-play-billing-validator

I am trying to verify Subscription Purchase from Android App ( Google Play ) on my server side using node and google-play-billing-validator package. I have followed the instruction and added services account along with accounts permission ( tried both only account and admin ) but its still returns me with insufficient permissions . I don't know why its doing that and whats wrong .

        var Verifier = require('google-play-billing-validator');
    
    var options = {
        "email": '###########################',
        "key": "PRIVATE",
    };
    
    
    
    try {
    
        var verifier = new Verifier(options);
    
        let receipt = {
            packageName: "com.tech.ichat",
            productId:

 "mychat_bms1",
        purchaseToken: "hajlffdcmmkdijnilkogpih.AO-J1OwYTQjVf57Exl8eJBRVNo4VLfwlWIOJykDfyASPLx9YbxvWwP0qDqls14Llcyt8cyslTCT4fN-Xy-0Vg-9BETVnTrxpPQ"
    };


    let promiseData = verifier.verifySub(receipt)

    promiseData.then(function (response) {
        // Yay! Subscription is valid
        // See response structure below
        console.log('API SUCCESS RESPONSE', error);

    })
        .then(function (response) {
            // Here for example you can chain your work if subscription is valid
            // eg. add coins to the user profile, etc
            // If you are new to promises API
            // Awesome docs: https://developers.google.com/web/fundamentals/primers/promises

        })
        .catch(function (error) {
            // Subscription is not valid or API error
                // See possible error messages below
                console.error(error);
            });
    
    } catch (error) {
        console.error('Exception Handled', error);
    }

response I got .

{
  isSuccessful: false,
  errorCode: 401,
  errorMessage: 'The current user has insufficient permissions to perform the requested operation.'
}
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!