storekit

Differentiating between initial buy and free “re-buy” in StoreKit/In-App Purchase

你说的曾经没有我的故事 提交于 2019-12-18 17:36:04
问题 From the StoreKit guide: If the user attempts to purchase a nonconsumable product or a renewable subscription they have already purchased, your application receives a regular transaction for that item, not a restore transaction. However, the user is not charged again for that product. Your application should treat these transactions identically to those of the original transaction. This presents a huge problem in an app I am working on. We have licensed a large body of content from a

In App Purchase user cancels tx while app in background: tx state stays on purchasing

瘦欲@ 提交于 2019-12-18 16:54:31
问题 I have some odd behavior with User canceling in App Purchase (Sandbox Environment) while the app is in background and the user is not yet logged in to the store: The process is as follows: User is not logged in/App Id is not set in Settings > Store User clicks buy button. This calls [[SKPaymentQueue defaultQueue] addPayment:payment]; User immediatly preses home button (app goes to background) Storekit popup appears asking to confirm purchase. User cancels App is activated again and would

SKReceiptRefreshRequest vs restoreCompletedTransactions

…衆ロ難τιáo~ 提交于 2019-12-18 13:01:46
问题 My app uses a subscription model and I´m getting complaints where some users can´t restore their subscription through SKPaymentQueue.restoreCompletedTransactions . They have to delete the app and re download it from the AppStore. I'm not really sure why it is happening only to some of the users, one of them told me he cancel and reactivated through itunes, another about a payment issue. So why do they need to re-download the app? I'm guessing some information is not refreshing properly on the

Can I use PayPal in iPhone/iPad apps?

寵の児 提交于 2019-12-18 10:57:21
问题 I am working on an application that through which I want to sell some event Tickets. Can I use PayPal for this purpose, and will Apple approve the app using other that StoreKit Framework. I searched on this topic, but I am not able to find any possible solution. Some searches say that paypal can be used and the other say that Apple never approves an app using payment gateway other than inAppPurchase. Please help me! 回答1: Yes, you can use PayPal payment gateway with your application. You can

How to detect and verify a renewal for an auto-renewable subscription?

别等时光非礼了梦想. 提交于 2019-12-17 21:50:31
问题 So I have setup an auto-renewable subscription for my app with a period of 1 month, which equals 5 minutes or so in the sandbox. In the client app I subscribe, send the receipt to my server, it gets verified and I put a record in my database that this user has a subscription. My question is how do I check if this subscription has been renewed? I have read the docs and can't figure out what should I do. Here is where I am so far: The initial receipt that gets sent to my server is verified with

in-app purchase in Swift with a single product

点点圈 提交于 2019-12-17 17:25:17
问题 Is there a simple way to implement a in-app purchase in swift for a single product? I want a button that triggers the in-app purchase like a [ad-removal] or [unlock-premium-content] I can't understand the full logic of it. I'm trying to follow and translate this tutorial from [Techotopia] http://www.techotopia.com/index.php/An_iOS_7_In-App_Purchase_Tutorial But It's my first time with the StoreKit Framework, and also with Swift. I just want to know the logic of the in-app purchase transaction

Titanium StoreKit module won't verify test account

大憨熊 提交于 2019-12-12 20:12:16
问题 I have a recurring subscription product as an in app purchase in my Titanium app. When I go to test this, it retrieves the correct product from iTunes and I get almost all the way through checkout, but before it lets me purchase, it says "Verification Required Before you can make purchases, you must tap Continue to verify your payment info. [Environment: Sandbox]" When I press Continue, it takes me into the App Store and just has a dialog box that says "[Environment: Sandbox]" with a Cancel

Apple In app purchase StoreKit error

早过忘川 提交于 2019-12-12 08:15:24
问题 I am implementing in app purchase feature for a bookshelf but an error message RANDOMLY appear during purchasing books. The error message is "Payment requests are restricted to products returned as valid via Store Kit's didReceiveResponse method." I find the document in apple http://developer.apple.com/library/ios/#qa/qa2010/qa1691.html but it does not help to solve the problem... in the same time observer print out another error : "Can't connect to the iTunes Store". my in app purchase logic

ios in-app purchase related crash

僤鯓⒐⒋嵵緔 提交于 2019-12-12 04:57:59
问题 I have a non consumable product to remove ads from my app, via in-app purchase. It works well sometimes, and if I close the app and open again, my code for detecting in NSDefaults if PRO version was purchased works fine. The things is, upon purchase, I want to remove the "upgrade to PRO" button from the tab bar and this code crashes the app. Here's the controller that handles in-app purchase: #import "RemoveAdsViewController.h" #import <StoreKit/StoreKit.h> #import "Flurry.h" #define

SKProductResponse invalid product identifiers. Nothing helps

陌路散爱 提交于 2019-12-12 00:35:20
问题 I've been searching all over the web for more than a week, i've tried everything suggested on SO and everywhere, but nothing works. I can't obtain products from Store Kit. Products array is always returned empty and invalid product identifiers is always full with my identifiers. Honestly, i have no idea what to do further. This question is my last hope. Can anybody help? NSSet *s = [NSSet setWithObjects:@"com.aceapegames.awesomecatgame.double_coins", @"com.aceapegames.awesomecatgame.10k_coins