Created
November 14, 2016 15:54
-
-
Save vernondegoede/e44bb412cffb0abc7f95fb32bd524c1e to your computer and use it in GitHub Desktop.
IAP reproduction steps
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const FLOXER_PRO_IOS_PRODUCT_ID = 'com.coqtail.floxer.pro_account'; | |
| window.inAppPurchase | |
| .getProducts([FLOXER_PRO_IOS_PRODUCT_ID]) | |
| .then(function (products) { | |
| console.log(products); // Returns: [] | |
| window.inAppPurchase | |
| .buy(FLOXER_PRO_IOS_PRODUCT_ID) | |
| .then(function (data) { | |
| console.log(data); // Doesn't get here | |
| }) | |
| .catch(function (err) { | |
| console.log(err); // Throws an error object: {errorMessage: "Unknown product identifier", errorCode: 100} | |
| }); | |
| }) | |
| .catch(function (err) { | |
| console.log(err); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment