Purchase function returns success without purchasing product
tejaskdubal opened this issue · comments
Bug Report
Calling SwiftyStoreKit.purchaseProduct does not show purchase dialog
It return callback with success with old transaction details
To Reproduce
Steps to reproduce the behaviour:
- Existing subscription status is EXPIRED
- User try to buy a new subscription
- Call SwiftyStoreKit.purchaseProduct
- callback return success with old transaction details without showing purchase dialog
Expected behaviour
After calling SwiftyStoreKit.purchaseProduct app should display purchase dialog
Platform Information
- iOS 15.1
- Purchase Type: auto-renewable subscription
- Environment: TestFlight
- SwiftyStoreKit version: 0.16.1
Additional context
Very in-consistent issue reproduced for some of the users
@tejaskdubal I have the same issue, did find any solutions?
Same issue with you. SwiftyStoreKit will implement paymentQueue(_ queue: SKPaymentQueue, updatedTransactions transactions: [SKPaymentTransaction])
and handle transactions. In my case, it found a transaction with .restored
state, but send it to paymentsController
. It may be should send to restorePurchasesController
?
My solution is use original SKPayment API to fix this problem.
same issue for me. Did this happen for you also in production?
I'm experiencing this in testflight at the moment with only one device