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
4
votes
2 answers

SKPaymentQueue updatedTransactions method not being called after renewal

I have implemented auto-renewable subscriptions in my app. All works ok. The only thing is that method public func paymentQueue(_ queue: SKPaymentQueue, updatedTransactions transactions: [SKPaymentTransaction]) is not being called after auto-renewal…
Wojtek
  • 1,006
  • 11
  • 30
4
votes
3 answers

how to assign skpayment applicationusername

can we assign skpayment applicationusername? When in app purchase is completed, I got a null applicationUsername in theSKPayment. How do I assign a value to SKPayment applicationUsername?
4
votes
2 answers

SKProductsrequest return nothing in Swift

I have been google this issue for couple hours. I have attempted something like: confirm Bundle Identifier and product id are absolutely correct remove and reinstall app on both Simulator and real devices I have try both 'productID' and…
4
votes
2 answers

Modifying internal properties of NSObjects (specifically SKPaymentTransaction)

I'm trying to unit test our receipt verification server and while I can alter the internal API to avoid this problem, it means we're not fully testing the client API so I'd like to avoid that. As part of our API, we pass through a…
Lee Winder
  • 857
  • 12
  • 35
3
votes
0 answers

SKPaymentTransactionObserver warning on submitting IOS In-App purchase product in App store with Ionic 2 App

I am trying to submit Ionic 2 Application with in-app purchase in apple App store. I am getting the below SKPaymentTransactionObserver method warning in App store promotion section. How to overcome it?
Prithivi Raj
  • 2,658
  • 1
  • 19
  • 34
3
votes
2 answers

IAP receipt validation for iOS

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…
habs93
  • 105
  • 2
  • 9
3
votes
2 answers

What if user changes device current date in Time based subscription for InApp Purchase?

I have implemented consumable InApp Purchase in my iOS App. User will have to pay to see a content and it will expire in 24 hours. Once user makes a payment, I will send a current date & expiration date to my server. Now, my server will return…
NSPratik
  • 4,714
  • 7
  • 51
  • 81
3
votes
1 answer

StoreKit purchase failing - com.apple.accessibility.gax.backboard

I'm working on custom StoreKit handler class for buying an in-app purchase. I'm having strange error, when trying to purchase something. Looks like some Apple private stuff is involved. The receipts in SKPaymentQueue's transactions are not valid.…
2
votes
1 answer

SKPaymentQueue transaction fails with ASDServerErrorDomain Code=5002 in sandbox

Suddenly in-app purchases of already productive IAPs are failing in the sandbox with the error code: : Payment completed with error: Error Domain=ASDServerErrorDomain Code=5002 "An unknown error has occurred"…
themenace
  • 2,601
  • 2
  • 20
  • 33
2
votes
0 answers

When does the SKPaymentTransaction.original.transactionIdentifier field change?

When I start a subscription with sandbox in my application, the SKPaymentTransaction.transactionIdentifier changes while the SKPaymentTransaction.original.transactionIdentifier field always returns the same value. When I try to subscribe again after…
2
votes
1 answer

Can we share In-app purchases across apps which belongs to same developer account?

Can we share In-app purchases across apps which belongs to same developer account ? I have one application on App Store with a list of in-app purchases. I want to submit a new one with same code base and some theme & skin changes. Rest remain…
Sid
  • 407
  • 1
  • 9
  • 17
2
votes
1 answer

Cannot finish a purchasing Non-Renewing Subscription transaction

I want to implement annual subscription into my app, and I do it using StoreKit. The problem is, when I tap subscriptionButton. An app throwing an error: 'NSInvalidArgumentException', reason: 'Cannot finish a purchasing transaction'. I was stuck in…
PiterPan
  • 1,760
  • 2
  • 22
  • 43
2
votes
1 answer

Transaction not completed using SKPayment

I have not finished transaction in my app, so when i try to buy in-App with this ID i got this message: this in app purchase has already been bought it will be restored for free But when i press ok button, delegate methods never called. -…
2
votes
1 answer

Forcing SKPaymentQueue to run on a background thread

In my AppDelegate, I run this command: SKPaymentQueue.defaultQueue().addTransactionObserver(self.storeDel); When I run "purchase recovery" and kill the app immediately, after restarting it the user interface is getting stuck for the period of time…
evenro
  • 2,626
  • 20
  • 35
2
votes
1 answer

Check Auto-renewable InApp Purchase iOS

I am implementing Auto-renewable InApp Purchase for iOS. It is working fine for first month. But I am unable to know whether user's subscription is auto renewed or not means what is the status of current InApp Purchase. After studying so many…