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

155
Views
Problema de permiso al intentar verificar la suscripción de Google Play con NodeJS google-play-billing-validator

Estoy tratando de verificar la compra de suscripción desde la aplicación de Android (Google Play) en mi lado del servidor usando el nodo y el paquete google-play-billing-validator. Seguí las instrucciones y agregué la cuenta de servicios junto con el permiso de las cuentas (intenté solo la cuenta y el administrador), pero todavía me devuelve los permisos insuficientes. No sé por qué está haciendo eso y qué está mal.

 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); }

respuesta que obtuve.

 { 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!