Reputation: 2521
I have an app and its working fine now i want to implement restore transactions method in my app. I did not find this method now how can i can call or define or make other method to restore transaction in in-app version 3. I searched on net but did not find relevant sol or info.
Upvotes: 0
Views: 2759
Reputation: 1709
You can restore your transaction using the getPurchases()
API
Bundle ownedItems = mService.getPurchases(3, mContext.getPackageName(),
itemType, continueToken);
ArrayList mySkus, myPurchases, mySignatures;
mySkus = ownedItems.getStringArrayList(RESPONSE_INAPP_ITEM_LIST);
myPurchases = ownedItems.getStringArrayList(RESPONSE_INAPP_PURCHASE_DATA_LIST);
mySignatures = ownedItems.getStringArrayList(RESPONSE_INAPP_PURCHASE_SIGNATURE_LIST);
will list the items that you own and the corresponding data that you can use to verify the purchases.
While you make this call, be sure to
Upvotes: 3