Answer the question
In order to leave comments, you need to log in
How to validate a check?
I have absolutely no experience with this.
Used libraries:
https://www.npmjs.com/package/in-app-purchase
https://www.npmjs.com/package/node-apple-receipt-verify
https://www.npmjs.com/package /google-play-billing-...
But it's not clear to me what they specifically accept and what they return (Clear and understandable interfaces), so I can't use these libraries normally either.
Answer the question
In order to leave comments, you need to log in
either a convenient wrapper over the call overhead.
verification (purchase validation) is a simple get request
https // androidpublisher.googleapis.com/androidpublisher/v3/applications/ {packageName} /purchases/products/ {productId} /tokens/ {token}
in response if a purchase exists, a response will come in the form json.
The application must pass at least two things to its backserver
productId or otherwise sku name - a character string that you assigned as the purchase identifier and
token - a long character string that the application can receive in the purchase hook
and through an api request.
in general, the application saw the purchase. requested your backend .
The backend turned on its own to Google's api.
Got an answer.
Decided to do it or not.
Made.
The app needs to know about it.
If everything is good, then the purchase is marked as known or consumed.
Similar to subscriptions.
Link to Google Play Developer API
https://developers.google.com/android-publisher/ap...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question