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
22
votes
3 answers

How to use appStoreReceiptURL

transactionReceipt is deprecated. But I am not able to use, [[NSBundle mainBundle] appStoreReceiptURL]. This is supposed to return a url to a receipt if there is one. But for me there isn't one, as this value is nil, and as far as I can tell it…
user4372923
17
votes
6 answers

paymentQueue: updatedTransactions: not called during restore

In rare cases it seems that some of my users are unable to make a non-consumable purchase. When they attempt to purchase it doesn't activate "premium" and when they restore from either their current install or a fresh install paymentQueue:…
alexgophermix
  • 4,189
  • 5
  • 32
  • 59
15
votes
1 answer

iOS sandbox/test account keeps asking to sign in after app exit

We are trying to implement simple In-App Purchases with StoreKit (not sure if it has anything to do with it) and everything went smooth so far, however there is one specific issue we are facing: When we exit the app, iOS permanently asks us to sign…
the_critic
  • 12,720
  • 19
  • 67
  • 115
14
votes
1 answer

SKPaymentQueue updatedTransactions not being called

I am getting "this in app purchase has already been bought it will be restored for free" but the delegate updatedTransactions is not being called and nothing happens, the IAP doesn't execute. I have implemented Restore Purchase which is working fine…
iYousafzai
  • 1,021
  • 1
  • 10
  • 29
12
votes
0 answers

iOS Auto-renewable Subscriptions: testing upgrades on sandbox not working

I am working on an auto-renewable subscription IAP in my iOS app. I plan to have 3 different tiers within the same subscription group. In my testing, I have been able to successfully purchase a subscription, see that it renews for a few times on…
Z S
  • 7,039
  • 12
  • 53
  • 105
11
votes
0 answers

How to detect when SKPaymentTransaction is interrupted?

I am following the steps for testing interrupted in-app purchases, as outline in the Apple docs here under the header Test an Interrupted Purchase. My problem starts on step 6., which states: "In your code, observe that the payment fails. The…
Grambo
  • 887
  • 8
  • 25
9
votes
1 answer

SKPaymentTransaction's stuck in queue after finishTransaction called

We've got an app that's been rejected by apple a few times for being unable to complete an auto renewing IAP purchase, and being unable to restore if attempted. We've finally narrow down the errors by adding some extra logging, and noticed Payment…
user498982
9
votes
2 answers

SKPaymentTransactionObserver `In-app purchases can’t be promoted on the App Store` on iTunes connect but delegate implemented and tested

We keep getting this warning message in Itunes connect after implementation and test of the delegate method: These in-app purchases can’t be promoted on the App Store because your latest app binary doesn’t include the SKPaymentTransactionObserver…
6
votes
1 answer

Do I have to verify the receipt for every SKPaymentTransaction for subscriptions?

I am implementing auto-renewable subscriptions in my iOS app. My transaction handling looks something like this pseudocode: func paymentQueue(_queue: SKPaymentQueue, updatedTransactions transactions:[SKPaymentTransaction]) { for (t in…
Tom Hamming
  • 10,577
  • 11
  • 71
  • 145
6
votes
4 answers

The purchase dialog does not show up since iOS 13.4

Since iOS 13.4, the dialog for in-app purchases does not show up when the line... [[SKPaymentQueue defaultQueue] addPayment:payment]; ...is executed. Pre iOS 13.4 a dialog popup showed up where the user confirmed the purchase, but now…
6
votes
0 answers

`startDownloads` not working on restored transaction. `updatedDownloads` not called

I have an issue with the restoration of hosted in-app purchase content. Sometimes it works, and sometimes it doesn't work at all. My users are also reporting this issue. I had a hard time trying to replicate it, but I managed to run into a situation…
6
votes
0 answers

restoreCompletedTransactions() not calling paymentQueue updatedTransactions?

I am having trouble restoring an IAP in Swift 4/iOS 11. My AppDelegate implements SKPaymentTransactionObserver. In AppDelegate's didFinishLaunchingWithOptions I'm calling SKPaymentQueue.default().add(self). I implement the paymentQueue(_ queue:…
ced
  • 86
  • 8
6
votes
1 answer

SKPaymentQueue does not finish SKPaymentTransaction for an auto-renewable subscription product

I'm trying to implement Auto-renewable subscription product. The problem is that SKPaymentQueue cannot finish SKPaymentTransaction by calling SKPaymentQueue.defaultQueue().finishTransaction(transaction). func paymentQueue(queue: SKPaymentQueue,…
Mike
  • 131
  • 1
  • 6
6
votes
1 answer

Get the penny cost from SKTransaction iOS

Hi I'm trying to do some server integration with my IAPs in my iOS app. The params for what I'm sending to the server require: transaction_ID, product_ID, and pennyCost. The first two were easy enough to figure out but I can't find the cost. I do…
4
votes
2 answers

How to implement Auto renewable subscription with first time discount

I want to implement auto renewable subscription with different discounts offers to the user. I have one product id but I want to apply different discount on same product id. Scenario like this, If user purchased within 1 week of installed app then…
1
2 3 4 5