mgoldsborough / google-play-in-app-billing-verification

BSD 3-Clause "New" or "Revised" License
69 stars 21 forks source link

The | delimited response data from the licensing server #4

Open ghost opened 8 years ago

ghost commented 8 years ago

How do I get the responseData?

IabHelper.OnConsumeFinishedListener mConsumeFinishedListener = new IabHelper.OnConsumeFinishedListener() { public void onConsumeFinished(Purchase purchase, IabResult result) {

                if (result.isSuccess()) {
                    Log.e(Tag, "Item Counsumed");
                    // only here grant access
                    String signature = purchase.getSignature();
                    **_String responseData = purchase.getOriginalJson();_**  // ??
mitchobrian commented 8 years ago

Have a look over here: https://github.com/mitchobrian/google-play-in-app-billing-verification/blob/master/library/GooglePlay/InAppBilling/GooglePlayResponseData.php