From ebe7976b4c138a8f4a1e456378f0971c9be5de9b Mon Sep 17 00:00:00 2001 From: Alexey Kulish Date: Wed, 27 Jan 2016 22:21:22 +0300 Subject: [PATCH] Fix --- OsmAnd/src/net/osmand/plus/inapp/InAppHelper.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/OsmAnd/src/net/osmand/plus/inapp/InAppHelper.java b/OsmAnd/src/net/osmand/plus/inapp/InAppHelper.java index be3280d663..271ed26d95 100644 --- a/OsmAnd/src/net/osmand/plus/inapp/InAppHelper.java +++ b/OsmAnd/src/net/osmand/plus/inapp/InAppHelper.java @@ -392,9 +392,12 @@ public class InAppHelper { JSONObject obj = new JSONObject(result); if (!obj.has("error")) { ctx.getSettings().BILLING_PURCHASE_TOKEN_SENT.set(true); + } else { + complain("SendToken Error: " + obj.getString("error")); } } catch (JSONException e) { logError("sendToken", e); + complain("SendToken Error: " + (e.getMessage() != null ? e.getMessage() : "JSONException")); } } }