Questions tagged skpaymenttransaction

Explore the latest questions and answers asked by our top developers.

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 transactions) { let data = Data(contentsOf: getReceiptUrl()) if verifyReceiptWithServer(data) == .success { print("Verified receipt successfully!") } queue.finishTransaction(t) } } If a subscription renews more than once while my app […]

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 added for transaction already in the SKPaymentQueue: … in the logs. While […]

By Andrew Carter
Categorised as in-app-purchase, ios, skpaymenttransaction, storekit

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 nothing. Does anyone know what might be causing this issue? Notes: It’s a fullscreen game based upon libSDL and […]

By Viktor Sehr
Categorised as in-app-purchase, ios, objective-c, skpaymenttransaction

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 want to give 50% discount on first payment. If user purchased after […]

By Jasmit
Categorised as auto-renewable, in-app-subscription, ios, skpaymenttransaction, swift

Still Have Questions?

Our dedicated development team is here for you!

We can help you find answers to your question for as low as 5$.

Contact Us