Questions tagged [storekit]

Store Kit is an iOS framework that allows an application to request payment from a user for additional functionality or content.

1090 questions
162
votes
3 answers

A complete solution to LOCALLY validate an in-app receipts and bundle receipts on iOS 7

I have read a lot of docs and code that in theory will validate an in-app and/or bundle receipt. Given that my knowledge of SSL, certificates, encryption, etc., is nearly zero, all of the explanations I have read, like this promising one, I have…
Duck
  • 32,792
  • 46
  • 221
  • 426
109
votes
6 answers

Undocumented NSURLErrorDomain error codes (-1001, -1003 and -1004) using StoreKit

I'm writing StoreKit-related code, and I'm getting some rather troubling error codes when I try to add a purchase to the queue. So far, I've experienced error codes -1003 and -1004 and I can't find anything about those codes on the internet. Running…
Hyperbole
  • 3,849
  • 3
  • 33
  • 54
86
votes
16 answers

StoreKit In App Purchase invalid product identifiers

I am getting an empty array of product identifiers from SKProductsRequest. I did the following steps: Created a In App Purchase Test User account under 'Manage Users' in iTunes Connect Created some in app purchase products under 'Manage Your In App…
Sridhar Bollam
  • 1,174
  • 1
  • 12
  • 19
79
votes
26 answers

iPhone Store Kit "Cannot connect to iTunes Store"

I am working on adding In-App purchases to my app. I am able to receive the productsRequest:didReceiveResponse method, and receive the array of products. My problem arises when I add a SKPayment to the SKPaymentQueue. After I add the product to the…
lucasharding
  • 793
  • 1
  • 5
  • 4
50
votes
3 answers

When to use restoreCompletedTransactions for in-app purchases?

For a basic app with nonconsumable in-app purchases, has anyone figured out best practices for using SKPaymentQueue's restoreCompletedTransactions? Observations I know it's recommended to always register a transaction observer to receive pending…
otto
  • 2,170
  • 1
  • 25
  • 26
46
votes
20 answers

iPhone In-App Purchase Store Kit error -1003 "Cannot connect to iTunes Store"

I've been working on adding in-app purchases and was able to create and test in-app purchases using Store Kit (yay!). During testing, I exercised my app in a way which caused the app to crash mid purchase (so I guess the normal cycle of receiving…
Rei
  • 1,148
  • 2
  • 12
  • 16
44
votes
5 answers

Logout from AppStore on iOS Simulator

Since 5.0, iOS simulator has StoreKit support so you can debug your In-App purchases without device. But, it has one issue. Once logged in (make In-App purchase) I can't change AppStore login. Settings has not "AppStore" item, so I can't "logout"…
Styx
  • 8,485
  • 8
  • 36
  • 46
44
votes
10 answers

iPhone In App Purchase - response.products are still empty?

Basically, I've tried to set up in app purchases on a test app before I implement them into a proper app that my company is working on. I've read the Store kit pdf and other snippets about a 1000 times, but the products are still being returned as…
user218485
  • 507
  • 1
  • 8
  • 9
44
votes
12 answers

Annoying "[Environment: Sandbox]" alert

While testing beta versions of our iOS apps we've been recently seeing an alert with the following text only "[Environment: Sandbox]" My guess is that this is a bug in the app store process but I don't know for sure. Has anyone encountered the…
Tom Susel
  • 3,111
  • 1
  • 22
  • 23
43
votes
2 answers

iOS Sandbox Test User account Subscription Management

I'm currently trying to add IAP to an existing App. To that end, I've added some products and created some test users. The products are recurring subscriptions. The device I'm testing with is an iPhone 4S with iOS 5.1. I can successfully query…
pseabury
  • 1,327
  • 3
  • 11
  • 26
42
votes
6 answers

Verify receipt for in App purchase

I have been playing around with in app purchases for a few days, everything works fine up until the point where I try to validate the receipt with the app store, as i am constantly getting back an invalid status. I am passing the receipt data to my…
Andy
  • 423
  • 1
  • 5
  • 4
39
votes
4 answers

iOS: How to detect if a user is subscribed to an auto-renewable subscription

Hopefully the title is self-explanatory. I'm trying to do something like this: checkIfUserIsSubscribedToProduct(productID, transactionID: "some-unique-transaction-string", completion: { error, status in if error == nil { if status == …
rigdonmr
  • 2,352
  • 1
  • 17
  • 35
37
votes
22 answers

iPhone StoreKit - invalid product id's

I'm trying to test In App Purchase within the sandbox environment. In order to test the code I did the following: Created an In App Purchase Test User account under 'Manage Users' in iTunes Connect Created some in app purchase products under…
Achim
  • 401
  • 1
  • 4
  • 7
32
votes
2 answers

'requestReview()' was deprecated in iOS 14.0

In iOS 14, Xcode is showing a warning: requestReview()' was deprecated in iOS 14.0 I'm using StoreKit to ask review automatically in my app. func requestReview() { guard shouldRequestReview else {return} …
Dc7
  • 479
  • 4
  • 10
31
votes
1 answer

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

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…
Nikolay Dyankov
  • 5,020
  • 9
  • 45
  • 64
1
2 3
72 73