Questions tagged [skpaymenttransaction]

The SKPaymentTransaction class defines objects residing in the payment queue. A payment transaction is created whenever a payment is added to the payment queue. Transactions are delivered to your application when the App Store has finished processing the payment.

To read more about it. Follow below link

Apple developer library

67 questions
2
votes
0 answers

In-App-Purchase - Restore Purchase does not work?

In my application, the users can buy PRO membership to unlock stuff. Here is the view controllers code where the user buy PRO membership: import UIKit import StoreKit class UpgradePROViewController: UIViewController, SKProductsRequestDelegate,…
IdaEmilie
  • 85
  • 1
  • 9
2
votes
0 answers

SKProduct keeps returning nil. SKPayment Transaction is not working

I am working in Spritekit and I am trying to enable SKPayments in my game to give the user the product once they make their purchase. I used the Ray Wenderlich Tutorial to assist me with this but since the tutorial is using tableviews and my game is…
1
vote
0 answers

SKPaymentTransaction: How to get paymentQueue.updatedTransactions called when needed (or access the user transactions)?

I would like to have the ability to check whenever I want that the user made an action related to his transactions, i.e. getting a refund outside of the app. I am saving the SKTransaction's transactionIdentifier in the UserDefaults when he completes…
Another Dude
  • 1,204
  • 4
  • 15
  • 33
1
vote
0 answers

Storekit in iOS providing a 0 for response.products

I have been trying to get a simple consumable iOS in-app purchase working. Unfortunately, response.products has been returning as empty 0. I have a developer membership, I created an itunesconnect in-app purchase with a product identifier "Getit",…
1
vote
2 answers

Associating Non-renewing created transactions with completed transactions

I have an app with several entities per user. User can do IAP for each entity. When I'm adding the payment to the SKPaymentQueue, I know to what entity the purchase is done for. How can I get this info from the updatedTransactions callback? I've…
R.Sap
  • 39
  • 2
1
vote
0 answers

Access contents of SKDownload after processing in-app purchase using SKPaymentQueue

I've been trying to access a downloaded SKDownload zip file after a successful in-app purchase as such: func paymentQueue(_ queue: SKPaymentQueue, updatedDownloads downloads: [SKDownload]) { downloads.forEach ({ (download) -> Void in switch…
KBog
  • 3,800
  • 1
  • 25
  • 31
1
vote
1 answer

iOS Handling local SKPaymentTransaction when using backend server

I'm creating an iOS app with an auto-renewal subscription. I've been reading a lot of tutorials and documentation but I'm a bit confused about how to handle certain scenarios. Here's how my app works: User installs app User creates account within…
Adam Langsner
  • 1,276
  • 1
  • 15
  • 23
1
vote
0 answers

restoreCompletedTransactions doesn't work in xcode 8 swift 3

I have the app on the AppStore where restore purchases work fine (the build is done with Swift 2.2). However, I just switched to Swift 3 and xCode 8 and restoreCompletedTransactions stopped working. The paymentQueue is not called and…
Jela
  • 51
  • 5
1
vote
1 answer

Swift In-App-Purchase: Constant prompt to sign in; incorrectly handling .finishTransaction?

I include a number of non consumable IAPs but I'm encountering issues when loading my app up as it seems to constantly prompt me to log in to my test account user I setup. I after looking at similar questions, I believe this was because I had…
R.James
  • 115
  • 1
  • 9
1
vote
1 answer

App keeps asking for Apple ID after opening view with SKPaymentTransactionObserver

So I know the problem is the ViewController with the IAP, but unsure how to fix it. I add SKPaymentQueue.defaultQueue().addTransactionObserver(self) in viewDidLoad and have the delegates for the class; SKProductsRequestDelegate,…
RileyDev
  • 2,950
  • 3
  • 26
  • 61
1
vote
1 answer

Apple In-App Purchase with hosted content - doesn't download files

I created a simple in-app purchase product, with a single mp3 file in it as content. I set it up in itunes connect, uploaded the pkg file, everything went well - the product is recognized from within my app, the user can buy it, the confirmation…
1
vote
1 answer

what triggers itunes sign-in alert

I want to implement a new store feature in our app where there will be multiple non-consumables up for purchase. I went ahead and set up everything the way I want it and it actually works. Unfortunatly now every time the app is started or becomes…
0
votes
0 answers

Invalid product identifier error in ios Objective C SKPayment even after I give valid identifier

I get the error invalid identifier even after I give valid identifier to SKPayment, I have double checked the Identifier it is the same as i am using in code. What could be the problem here? Here is my code. #import "MKStoreManager.h" #import…
0
votes
0 answers

In iOS how multiple transactions in a row for one user are treated

I'm trying to start multiple auto renewable purchase of subscriptions in once for one user, I'm curious how it is handled by Apple I append transactions like this: func startTransactions(purchaseIDs: Array) { if…
0
votes
0 answers

SKPaymentTransactionObserver; multiple repeated transactions

I got an app where I used the SKPayment, SKPaymentTransactionObserver and so on. However, everything is going fine with the first payment, but whenever I select any other thing I want to purchase, it starts purchasing again all the things I already…
markm
  • 3
  • 2