Google purchase verification error

Discussion on Backendless Docs 0 commentsGoogle Play Purchase Validation
https://a.disquscdn.com/uploads/users/14978/6259/avatar92.jpg?1427658489</img>Artur Belov an hour ago
Hello! I want to verificate purchases from Google by server side. For that I created app, initialized backendless with keys, made TEST PURCHASE, got purchaseToken, and now I got error while verfication. Why? Maybe the reason is that the payment is not real?

Error:

BackendlessException{ code: 'Internal client exception', message: 'null' }
at com.backendless.Invoker$SyncResponder.errorHandler([url=http://invoker.java/]Invoker.java[/url]:127)
at com.backendless.core.responder.AdaptingResponder.errorHandler([url=http://adaptingresponder.java/]AdaptingResponder.java[/url]:93)
at weborb.client.ioEngine.HttpIOEngine.send([url=http://httpioengine.java/]HttpIOEngine.java[/url]:213)
at weborb.client.ioEngine.HttpIOEngine.invoke([url=http://httpioengine.java/]HttpIOEngine.java[/url]:145)
at weborb.client.WeborbClient.invoke([url=http://weborbclient.java/]WeborbClient.java[/url]:138)
at com.backendless.Invoker.invokeSync([url=http://invoker.java/]Invoker.java[/url]:100)
at com.backendless.Invoker.invokeSync([url=http://invoker.java/]Invoker.java[/url]:112)
at com.backendless.Commerce.validatePlayPurchase([url=http://commerce.java/]Commerce.java[/url]:48)

Hi Artur,

By tracing back to the line number I see you’re invoking a sync method, which is not allowed on the main UI thread. Please change the code to use the async version of “validatePlayPurchase”.

Regards,
Mark

Thanks a lot! This solved my problem