-
Notifications
You must be signed in to change notification settings - Fork 796
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Restore outdated subscription and then Purchase, SwiftyStoreKit refuse to proceed #587
Comments
same bug,have you fix it ? |
Same, it is related to SKPaymentQueue have lots of transactions in the queue, if you will wait 5-10 minutes, the buy window will appear.
|
In iOS13 sandbox environment, if you call |
@dx777 @githubdelegate So this is much like an iOS bug in sandbox environment, and doesn't exist in production environment? |
Just wanted to note, I have noticed this exact same behavior. I hope it is not in production and agree it is a bug. This should not be a closed bug until we have confirmation that it will not occur in production and.or an explanation and work around to avoid such an issue. |
I have same error when i click restore button and in 5 sec click 1 month subscription button i get error "Unexpected restored transaction for payment BAV.Jiletka.autoRenewableOneMoth" from SwiftStoreKit |
What I have noticed is that once the error that @fury21 quoted comes up, Swifty then "Completes" the purchase as a success, even though no new purchase has happened. This in turn activates whatever item is in question. The app will then shortly thereafter realize its not supposed to have this item and take it away if you've programmed it right but this should be looked into a bit further. It seems that there are maybe some unfinished purchases in the payment queue. And even if these have expired, they get finished, as they should.. But then for some reason, swifty thinks they are valid for a short period.. Can we re-open this bug report? |
Also, i had same bug before i begin use SwiftyStoreKit, so maybe problem in receipt validator? |
Good to know.. |
any ideas? |
We are still having this issue (in production env), it doesn't even help when you delete and reinstall the app. |
Still getting this issue. Does anyone have any solution? |
Bug Report
SwiftyStoreKit seems to have a check when a purchase happens, whether the product is restored before.
This could lead to an error when purchasing a new subscription while an outdated subscription restore result already exists.
Since both share the same product identifier, SwiftyStoreKit would recognize the restored transaction as the result of the new purchase, returns a success result directly while no payment actually happened.
To Reproduce
Expected behavior
Since we are starting a new subscription, (the old subscription is already invalid), the purchase should continue to App Store Purchase flow.
Platform Information
The text was updated successfully, but these errors were encountered: