in-app-purchase

Failed to validate receiptError: failed to validate purchase using Node.js

家住魔仙堡 提交于 2019-12-24 20:59:45
问题 I am trying to set up a node.js server to validate receipts from AppStore connect In App Purchases I have set up. I have followed this https://github.com/voltrue2/in-app-purchase library but I'm getting an error response saying my receipt is not defined and failed to validate receipt . I'm I doing anything wrong here. I'm still testing on a local server. I want to get it to work before hosting it on Heroku . What would I be doing wrong here? const iap = require('in-app-purchase'); iap.config(

what happens when an app that has in-app purchase products on it gets updated?

被刻印的时光 ゝ 提交于 2019-12-24 15:20:58
问题 I suppose it's up to the programmer to keep track of IAPs after the app is updated? Would I have to write a file to the documents folder saying the IAP was purchased, and then have the code check to see if the file's there once the app updates? I have an app out now that has in-app purchases available, and I'm planning on releasing an update, but what will happen to users that purchased IAPs? 回答1: Apple keeps track of in-app-purchases that your users make. You can ask Apple about the in-app

java.lang.NullPointerException at IabHelper.startSetup(IabHelper.java:266)

血红的双手。 提交于 2019-12-24 14:42:40
问题 Anyone know how to fix this NullPointerException on the start of setup of the IabHelper? java.lang.NullPointerException at android.app.ApplicationPackageManager.queryIntentServicesAsUser(ApplicationPackageManager.java:559) at android.app.ApplicationPackageManager.queryIntentServices(ApplicationPackageManager.java:571) at IabHelper.startSetup(IabHelper.java:266) at MyApplication.createIABHelper(MyApplication.java:256) at MyApplication.onCreate(MyApplication.java:156) at android.app

In-App Purchase: “This is not a Test User Account”

爱⌒轻易说出口 提交于 2019-12-24 11:28:42
问题 I'm developing an app that uses In-App Purchases, but when I tap on buy and enter my Apple ID and password I get this error: This is not a Test User account. Please create a new account in the Sandbox environment. [Environment: SandBox] 回答1: You can't use your Apple ID for testing the In-App purchase. You need to create a test user (with different email id) in the itunes connect for testing the in-app purchase. Go to iTunes Connect Login with your credentials Choose manage Users 4> Select

In-App not working

泄露秘密 提交于 2019-12-24 09:49:22
问题 I just integrated the Apple's In-App purchase into my application with 4 products. It was working fine in Sandbox mode before it gets rejected by Apple for not submitting the In-App with the application binary. Once it was rejected it is not fetching the products I was added. It shows no products are there in the list. I checked all the product IDs. But no use. Deleted the previous products and added new, but still the same problem exists. After that I created new application with 2 products.

How do I add consumable In App Purchases using NSUserDefaults and not my own server?

独自空忆成欢 提交于 2019-12-24 08:58:46
问题 I'm new so I need simple answers if at all possible. I have my first app just about done (but it's not even submitted to the store), and I want to add In App Purchases. My app is a game where the user starts with some virtual currency "coins". I want to add an IAP for them to be able to buy more coins at three to maybe five different price points. I have seen a ton of tutorials and it seems the info is mixed. Can anyone help me out on how to proceed here, in a way that's realistic for a very

RMStore requestProducts gives exception when requesting products

人盡茶涼 提交于 2019-12-24 08:50:38
问题 I am using RMStore library for IAP (subscription based) and I get exception at this line: [[RMStore defaultStore] requestProducts:[NSSet setWithArray:_products] success:^(NSArray *products, NSArray *invalidProductIdentifiers) { - (void)viewDidLoad { [super viewDidLoad]; _products = @[@"NEWSUB01", @"NEWSUB06", @"NEWSUB12"]; [UIApplication sharedApplication].networkActivityIndicatorVisible = YES; [[RMStore defaultStore] requestProducts:[NSSet setWithArray:_products] success:^(NSArray *products,

Manage Consumable IAP promo code

这一生的挚爱 提交于 2019-12-24 07:52:42
问题 I would like to know how to manage an In-App Purchase bought using a promo code . In particular in my app I have a consumable that enables a feature, so I was wondering how to get the event that someone has bought that iap using a promo code, so that a can enable the feature. Thanks 来源: https://stackoverflow.com/questions/41639555/manage-consumable-iap-promo-code

How to change app icon within In-App Purchase?

烂漫一生 提交于 2019-12-24 05:43:24
问题 Is it possible even to change from demo icon to full version image after purchasing full version via InApp Purchase? Or should I make two versions with lite/full icons ? 回答1: Please refer to https://stackoverflow.com/a/45602449/195186 This was true before iOS 10.3 only: No. This is not possible. The icon is fixed. 回答2: UIApplication has a new instance method that will do what you want. The Apple docs spell out exactly what you need to do to accomplish this: https://developer.apple.com

How to change app icon within In-App Purchase?

[亡魂溺海] 提交于 2019-12-24 05:43:05
问题 Is it possible even to change from demo icon to full version image after purchasing full version via InApp Purchase? Or should I make two versions with lite/full icons ? 回答1: Please refer to https://stackoverflow.com/a/45602449/195186 This was true before iOS 10.3 only: No. This is not possible. The icon is fixed. 回答2: UIApplication has a new instance method that will do what you want. The Apple docs spell out exactly what you need to do to accomplish this: https://developer.apple.com