storekit

IAP receipt validation for iOS

前提是你 提交于 2019-12-06 01:14:50
I am working on a client/server application which uses Apples IAP and StoreKit framework to purchase a subscription. What we would like is for the client (iPhone or iPad) to make the initial subscription purchase with apple through their iTunes account using StoreKit framework and then pass of the receipt to our server, which will validate it and then update the users account status. We'd also like the server to be responsible for managing the status of the subscription (check for auto-renew, cancellation etc..) This is all using iOS 7 style appleReceipts, rather than iOS 6 style transaction

Free non-consumable in-app purchase with hosted content on Apples's servers

∥☆過路亽.° 提交于 2019-12-06 00:40:03
Can non-consumable in-app purchases that include content hosted on Apple's servers be free? I couldn't find anything about this in the docs and as you can set in-app purchases to be free in iTunes connect, I assumed it was possible. I have set up a non-consumable in-app purchase on iTunes connect, uploaded some content and set its price to be free. Unfortunately when I request the products data using the product ID, I receive that ID in the SKProductsResponse.invalidProductIdentifiers array. I have also set up another in-app purchase different from the previous one only in the price, as its

payment.applicationUsername in iOS 7 StoreKit for In-App Purchases

99封情书 提交于 2019-12-05 22:49:42
In the WWDC video "Using Store Kit for In-App Purchases", the speaker describes adding a payment.applicationUsername as a hash of the customer account name. payment.applicationUsername = hash(customerAccountName); I cannot find documentation on this anywhere. I don't think the customerAccountName is the same as the GUID, so where would we obtain this information? The "customerAccountName" value, and the hash function can be different from developer to developer. Apple provides a good example of a hash function in the In-App Purchase Programming Guide, in the section entitled Requesting Payment

In-App Purchase response.products empty

♀尐吖头ヾ 提交于 2019-12-05 20:19:55
I know it has been asked before: iPhone In App Purchase - response.products are still empty? but I am also trying to implement an in app purchase and my response.products is empty. My situation: I uploaded and rejected my binary once. But then I put the status back to waiting for upload again.(Does it matter?) The status of all my in app purchase products are "Ready to Submit". My production user is signed out. Test user not signed in yet. -(void) requestProductData{ SKProductsRequest *productRequest= [[SKProductsRequest alloc] initWithProductIdentifiers:[NSSet setWithObjects: @"com.mydomain

How do I associate a user with an auto-renewable subscription involving Apple's status notifications?

房东的猫 提交于 2019-12-05 16:51:05
问题 How do I associate an auto-renewable subscription in a way that lets me know which notifications are for which users in MY database? Is there some sort of id from the original receipt that I can store as a field for a User? It is great that I know when a user cancels or renews, etc but it doesn't help that I am not sure which user this is happening for. When you visit the docs and scroll down to Status Update Notifications , you'll notice that status notifications do have an original

StoreKit to return all product IDs

你离开我真会死。 提交于 2019-12-05 15:56:48
问题 This question is a little different from the others I've found here. My In App StoreKit is working, I can list products in my store successfully. I've gone through the Apple documentation and never saw my question addressed(I may have missed it). My client(non-profit) would like to be able to accept donations through their App. I would like to let them have the ability to add new donation events on the fly without users having to update their app. What I mean is, they may have a special "Help

Method does not reach Completion Block

情到浓时终转凉″ 提交于 2019-12-05 15:44:14
问题 I'm using the SKStoreProductViewController to display an iTunes product with the following method. The method gets called, but I get no success or error. Any idea why?: @IBAction func BuySomething(sender : AnyObject) { NSLog("%@","called");//gets called let storeViewController:SKStoreProductViewController = SKStoreProductViewController(); storeViewController.delegate = self; var someitunesid:String = "676059878"; var productparameters = [SKStoreProductParameterITunesItemIdentifier

Trying to add a protocol to a Class signature in swift

和自甴很熟 提交于 2019-12-05 13:30:49
I'm trying to create an in-app purchase in swift. In my class signature, I have the following: class ViewController: UIViewController, UITextFieldDelegate, UIAlertViewDelegate, SKStoreProductViewControllerDelegate, SKPaymentTransactionObserver{ However, I get an error message: type "ViewController" does not conform to protocol: SKPaymentTransactionObserver I've read this: https://developer.apple.com/library/prerelease/mac/documentation/Swift/Conceptual/BuildingCocoaApps/WritingSwiftClassesWithObjective-CBehavior.html and Conform to protocol in ViewController, in Swift The

Tap continue and sign in to check for downloads. [Sandbox]

◇◆丶佛笑我妖孽 提交于 2019-12-05 09:50:18
问题 From times to times I get a very annoying dialog with the text: "Tap continue and sign in to check for downloads." If I login ( with a sandbox user ) or tap Cancel the dialog is immediately displayed again. I am using Non-Renewing Subscriptions and Non-Consumable products. Any ideas how to get rid of this dialog? Thanks /Martin 回答1: The consensus seems to be that: The issue started in iOS 6 It doesn't seem to happen if you are not logged in in Settings with an Apple ID. Turning on Airplane

Discount when purchasing an iOS in-app purchase

柔情痞子 提交于 2019-12-05 02:53:14
问题 Im planning to provide a discount for an In App purchase when a user successfully scans a QR code using the application. I'm aware that there is no way to provide a discount for an existing item. Im planing to add another item with the discounted price. Any one has prior experience with an approach like this ? Thank you in advance 回答1: There is no way to do this directly - give a discount on a single IAP. In some of my apps I have free ad-ons that just have to be downloaded, and I have them