We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Here is my code i tryed couple times but never got it working.
function initStore() { CdvPurchase.store.verbosity = CdvPurchase.LogLevel.DEBUG; try{ setTimeout(() => { sendSubscriptionSuccessNotification(); }, 2500);
}catch{ } CdvPurchase.store.register([ { id: 'dayemmonth', type: CdvPurchase.ProductType.NON_CONSUMABLE, platform: CdvPurchase.Platform.GOOGLE_PLAY, } ]); CdvPurchase.store.initialize([CdvPurchase.Platform.GOOGLE_PLAY, CdvPurchase.ProductType.NON_CONSUMABLE]); CdvPurchase.store.update();
}
function purchaseAccess() { showLoader(6000); const productId = 'dayemmonth'; const product = CdvPurchase.store.get(productId, CdvPurchase.Platform.GOOGLE_PLAY); if (product) { product.order(); } else { alert("Product not found"); } }
The text was updated successfully, but these errors were encountered:
Have you figured it out? Please reopen if not.
Sorry, something went wrong.
No branches or pull requests
Here is my code i tryed couple times but never got it working.
function initStore() {
CdvPurchase.store.verbosity = CdvPurchase.LogLevel.DEBUG;
try{
setTimeout(() => {
sendSubscriptionSuccessNotification();
}, 2500);
}
function purchaseAccess() {
showLoader(6000);
const productId = 'dayemmonth';
const product = CdvPurchase.store.get(productId, CdvPurchase.Platform.GOOGLE_PLAY);
if (product) {
product.order();
} else {
alert("Product not found");
}
}
The text was updated successfully, but these errors were encountered: