Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if((window.device && device.platform == "Android") && typeof inappbilling !== "undefined") {
- inappbilling.init(function(resultInit) {
- console.log("IAB Initialized");
- inappbilling.getPurchases(function(result) {
- console.log("PURCHASES -> " + JSON.stringify(result));
- if(result.length == 0)
- showAD();
- },
- function(errorPurchases) {
- console.log("PURCHASE ERROR -> " + errorPurchases);
- showAD();
- });
- },
- function(errorInit) {
- console.log("ERROR -> " + errorInit);
- showAD();
- },
- {showLog: true},
- ["ad_free"]);
- } else {
- showAD();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement