This commit is contained in:
Alexey Kulish 2016-01-27 22:21:22 +03:00
parent aa63a8ebdf
commit ebe7976b4c

View file

@ -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"));
}
}
}