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
0
votes
1 answer

Accessing receiptData info of a user's previous subscription that was canceled, upgraded or dropped on iOS

there is a method like the following in the android billing library. https://developer.android.com/reference/com/android/billingclient/api/PurchaseHistoryRecord If there is a subscription available, purchaseToken etc. for that subscription. returns…
enjektor0
  • 483
  • 2
  • 8
0
votes
0 answers

iOS SKPaymentQueue transaction observer returning all purchased transactions on app launch

I'm trying to implement auto-renewable subscriptions. I have added a SKPaymentQueue transaction observer in the app delegate and I remove it as soon as the app terminates. Everything works but the problem is, on the next app launch, when the…
reapf
  • 89
  • 6
0
votes
2 answers

Listen to when the in-app purchase window opens on iOS

SKPaymentQueue.default().add(payment) I'm starting an in-app purchase with. But I think the purchase window sometimes opens late. Is there a method, delegate method to listen for the situation where this screen opens? I researched this but I could…
0
votes
3 answers

SKPaymentTransaction.transactionState is always .restored

I'm testing my app auto-renewable subscriptions but SKPaymentTransaction.transactionState never changes to .purchased and it's always .restored. Everything was working ok but I can get nothing but .restored since I first called…
Daniel García Baena
  • 1,191
  • 4
  • 19
  • 33
0
votes
0 answers

In-App purchase subscription cancellation issue

I implemented in-App purchase in iOS app (let's take one month subscription), it's working perfectly. I want to ask if user cancel the subscription (before the end date) from iTunes then iTunes sends something to device or not? so we can locally…
0
votes
0 answers

How to know when SKProductDiscount is active

We'd like to offer an Introductory Price for our app. It should be a 50% off the first year of your subscription. So we added an Introductory Price in App Store Connect but also want to time-limit it. So we'd like to enable it like let's say for one…
Georg
  • 3,664
  • 3
  • 34
  • 75
0
votes
1 answer

When is the transaction state set to restored in the updatedTransactions delegate method of SKPaymentTransactionObserver?

I've been testing code for in-app purchases, and I can't get the transaction state to set to restored in the updatedTransactions SKPaymentTransactionObserver delegate method when it's called. When does that method call with that transaction…
daniel
  • 1,446
  • 3
  • 29
  • 65
0
votes
0 answers

ERROR: Type 'StoreViewController' does not conform to protocol 'SKPaymentTransactionObserver'

I keep getting an Error message (Type StoreViewController does not conform to protocol SKPaymentTransactionObserver) I have reviewed the code several times. Perhaps I need a set of fresh eye or there is something actually wrong with the coding -…
Aisha B
  • 7
  • 2
0
votes
1 answer

iOS IAP: How to veriy that user was really charged for transaction

I am using paymentQueue(_ queue: SKPaymentQueue, updatedTransactions transactions: [SKPaymentTransaction]) and inside I am of course handling the transactionState. Everything is working fine, but now I want to add proper tracking. There is the…
Martin Mlostek
  • 2,755
  • 1
  • 28
  • 57
0
votes
2 answers

iOS IAP - Does sandbox users have purchases from live store?

If a user has bought an non-consumable IAP in the live app, does this user have the IAP in the sandbox environment if he is set up as iTunesConnect user & tester? Can this user then "restore" the purchase via restoreCompletedTransactions? Or does he…
0
votes
0 answers

SKPayment verify is already purchased subscription item (objective c)

I have this code and all the process it's ok and enter in this state: SKPaymentTransactionStatePurchased But I don't know what will happen when the subscription trial end. This implementation is correct? On the other hand, when the user run the…
Fabio
  • 1,913
  • 5
  • 29
  • 53
0
votes
0 answers

SKPaymentQueue updated transactions when user is logged out

I'm developing an application using subscriptions, and as such call [[SKPaymentQueue defaultQueue] addTransactionObserver:self]; upon launch. This is to receive any new and pending transactions as soon as the application launches. This works for…
Aleksander
  • 2,735
  • 5
  • 34
  • 57
0
votes
1 answer

SKPayment / SKPaymentQueue: Cannot connect to iTunes Store

I am building an App with IAP (auto-renewal subscription). The workflow seems to work fine, IPA are created for sure (in iTunes connect), sandbox user also logged in. The IAP product ID is also correct but I get the error (from…
Kevin Lieser
  • 951
  • 1
  • 9
  • 25
0
votes
1 answer

Can not get valid product of IAP in iOS

I'm trying to add an in-app purchases for my App, I've added a product in iTunes-Connect, and its status is Ready to Submit now. But I can not get the valid product in function -(void)productsRequest:(SKProductsRequest *)request…
Rick
  • 235
  • 4
  • 13
0
votes
2 answers

iOS IAP with auto renew subscription that has multiple products in the same family with the same duration

I'm currently working on an iOS app that will allow users to purchase an auto-renew subscription to access service charged monthly. I would like to be able to offer a basic and premium service, and allow users to upgrade or downgrade from one or…
habs93
  • 105
  • 2
  • 9