Hi,
I am trying to get the Google Play Developer API working: https://www.b4x.com/android/forum/threads/google-play-developer-api.81839/#post-518277
In Google API Manager I have Google Play Android Developer API enabled etc.
Based on the example in the above thread, it looks like it's working and sending and receiving data etc.
So far so good..
The question I have is, when a user uses my app (B4A) and purchases the in-app purchase, what data needs to be sent to the GooglePlayDeveloperServer in order to check if that purchase was successful ?
I want to verify if the purchase was successful or not from my B4J server.
Looks like I need to use the following API in order to check the in app purchase: https://developers.google.com/android-publisher/api-ref/purchases/products/get
GET https://www.googleapis.com/androidp...ame/purchases/products/productId/tokens/token
From the test sub I have the following as the j.download:
https://www.googleapis.com/androidp...age.InAppPurchaseSKUHere/tokens/SomeTokenHere
Not sure where the token comes from? I guess this needs to be sent to the B4J app from the B4A app but not sure where to get it from, or it's some other token from somewhere else?
Problem I have when I run the above, I get:
However, I was able to run the example from the tutorial so I know my ClientId & ClientSecret is correct.
Not sure on what I am doing wrong ?
I am trying to get the Google Play Developer API working: https://www.b4x.com/android/forum/threads/google-play-developer-api.81839/#post-518277
In Google API Manager I have Google Play Android Developer API enabled etc.
Based on the example in the above thread, it looks like it's working and sending and receiving data etc.
So far so good..
The question I have is, when a user uses my app (B4A) and purchases the in-app purchase, what data needs to be sent to the GooglePlayDeveloperServer in order to check if that purchase was successful ?
I want to verify if the purchase was successful or not from my B4J server.
Looks like I need to use the following API in order to check the in app purchase: https://developers.google.com/android-publisher/api-ref/purchases/products/get
GET https://www.googleapis.com/androidp...ame/purchases/products/productId/tokens/token
From the test sub I have the following as the j.download:
https://www.googleapis.com/androidp...age.InAppPurchaseSKUHere/tokens/SomeTokenHere
Not sure where the token comes from? I guess this needs to be sent to the B4J app from the B4A app but not sure where to get it from, or it's some other token from somewhere else?
Problem I have when I run the above, I get:
Waiting for debugger to connect...
Program started.
Getting access token from refresh token...
{
"error": "unauthorized_client",
"error_description": "Unauthorized"
}
Error accessing account.
However, I was able to run the example from the tutorial so I know my ClientId & ClientSecret is correct.
Not sure on what I am doing wrong ?