googleapis / googleapis/google-api-nodejs-client

No inapp products consume api present in the library

Aperta
#3,232 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
priority: p3 type: question
Lingua principale
TypeScript
Stelle
12.2k
Fork
2k
Merge medio
1g 9h
PR unite (30g)
24

Descrizione

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.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.