• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps In App Billing

You need to consume the item to be able to purchase it again.

mHelper.consumeAsync(inventory.getPurchase(SKU_GAS),mConsumeFinishedListener);

IabHelper.OnConsumeFinishedListener mConsumeFinishedListener =
new IabHelper.OnConsumeFinishedListener() {
public void onConsumeFinished(Purchase purchase, IabResult result) {
if (result.isSuccess()) {
// provision the in-app purchase to the user
// (for example, credit 50 gold coins to player's character)
}
else {
// handle error
}
}
};
 
Back
Top Bottom