Hi!
I'm using the Play Android Developer API with Google App Engine backend to verify purchases (in-app and subscriptions) to deliver the users content. In detail:
AndroidPublisher publisher = new AndroidPublisher.Builder...
AndroidPublisher.Inapppurchases purchases = publisher.inapppurchases();
InappPurchase purchase = null;
try {
Get get = purchases.get(packageName, productId, purchaseToken);
purchase = get.execute();
} catch (IOException e) {
log.log(Level.SEVERE, e.getMessage());
}
Every now and then, the API returns the following response:
{
"code" : 503,
"errors" : [ {
"domain" : "global",
"message" : "Backend Error",
"reason" : "backendError"
} ],
"message" : "Backend Error"
}
The receipt data is valid - performing the query a few time leads to no error. I can't reproduce it and the problem is, that this error means that verifying the purchase has failed and therefore the user isn't able to the the purchased content.
What is the reason for this error?
Any help is appreciated! Thanks, Stefan