Skip to content

Commit

Permalink
signature and receipt properties added with the owned products list
Browse files Browse the repository at this point in the history
  • Loading branch information
maxs15 committed Sep 23, 2015
1 parent a122ea5 commit 8ca6a2f
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,10 @@ private JSONArray getPurchases() throws JSONException {
// Convert the java list to json
JSONArray jsonPurchaseList = new JSONArray();
for (Purchase p : purchaseList) {
jsonPurchaseList.put(new JSONObject(p.getOriginalJson()));
JSONObject purchaseJsonObject = new JSONObject(p.getOriginalJson());
purchaseJsonObject.put("signature", p.getSignature());
purchaseJsonObject.put("receipt", p.getOriginalJson().toString());
jsonPurchaseList.put(purchaseJsonObject);
}

return jsonPurchaseList;
Expand Down

0 comments on commit 8ca6a2f

Please sign in to comment.