googleapis / googleapis/google-api-nodejs-client

No inapp products consume api present in the library

Abierto
#3,232 0 comentarios 0 reacciones 0 asignados Ver en GitHub
priority: p3 type: question
Lenguaje dominante
TypeScript
Estrellas
12.2k
Forks
2k
Merge medio
1 d 9 h
PR fusionados (30 d)
24

Descripción

Thanks for stopping by to ask us a question! Please make sure to include:
- I needs to acknowledge the in app purchase from server side, as per the android publisher v3.ts code i can see there is a
- androidpublisher.purchases.products.consume api but when i am hitting from the api
- i am getting following error
- This is my code
-const res = await androidpublisher.purchases.products.consume({
packageName: "XXXX.XXX.XXX",
productId: obj.sku,
token: obj.purchaseToken,
requestBody: {
},
});
-2023-05-01T07:01:43: TypeError: **androidpublisher.purchases.products.consume is not a function
2023-05-01T07:01:43: at Object.exports.ackowledgeConsume (/home/ubuntu/****/website/google/purchase.js:60:59)
2023-05-01T07:01:43: at processTicksAndRejections (internal/process/task_queues.js:95:5)
2023-05-01T07:01:43: at async /home/ubuntu/kanganweb/website/routes/web-routes.js:376:34**

I can see similar api in Java and Python library

**PLEASE READ**: If you have a support contract with Google, please create an issue in the [support console](https://cloud.google.com/support/) instead of filing on GitHub. This will ensure a timely response.

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

Start by tracing the Android Publisher v3 client usage shown in website/google/purchase.js and the call from routes/web-routes.js, then compare the available products methods with the reported consume call. Done means the Node.js client exposes the requested products consume operation or clearly documents its absence and supported alternative.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
node.js, typescript
Área
api, backend
Tipo de issue
Nueva funcionalidad
Dificultad
3/5
Tiempo estimado
1-2 días
Estado de actividad
Estancado
Claridad
Necesita aclaración
Aptitud para principiantes
35/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.