use of com.android.vending.billing.IabHelper in project frostwire by frostwire.
the class PlayStore method initialize.
public void initialize(Context context) {
if (helper != null) {
LOG.warn("Already called this method, review your logic, just returning");
return;
}
helper = new IabHelper(context, base64EncodedPublicKey);
// toggle this value for development
helper.enableDebugLogging(Debug.isEnable(), LOG.getName());
helper.startSetup(result -> {
if (!result.isSuccess()) {
LOG.error("Problem setting up in-app billing: " + result);
return;
}
refresh();
});
}
Aggregations