Skip to content

Instantly share code, notes, and snippets.

@abbas-oveissi
Last active December 7, 2019 08:03
Show Gist options
  • Save abbas-oveissi/588b733e926037570f532d43bd583874 to your computer and use it in GitHub Desktop.
Save abbas-oveissi/588b733e926037570f532d43bd583874 to your computer and use it in GitHub Desktop.
private void buyFullVersion() {
mHelper.launchPurchaseFlow(this, SKU_FULL_VERSION, 1, new IabHelper.OnIabPurchaseFinishedListener() {
@Override
public void onIabPurchaseFinished(IabResult result, Purchase info) {
if (result.isFailure()) {
Toast.makeText(DetailActivity.this, R.string.purchasing_error, Toast.LENGTH_SHORT).show();
return;
} else if (info.getSku().equals(SKU_FULL_VERSION)) {
bookmarkMovie();
}
}
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment