SwiftyStoreKit
SwiftyStoreKit copied to clipboard
Can't restore purchases if promo code is used
Platform
- [x ] iOS
- [ ] macOS
- [ ] tvOS
In app purchase type
- [ ] Consumable
- [x ] Non-consumable
- [ ] Auto-Renewable Subscription
- [ ] Non-Renewing Subscription
Environment
- [ x] Sandbox
- [x ] Production
Version
0.10.7
Related issues
Report
Issue summary
If I use a in-app purchase promo code, when restoring the app says it has found no restored purchases. If the item is normally bought it works fine. Promo codes both in production and while testing don't seem to be recognised by SwiftyStoreKit.
What did you expect to happen
I expected to restore the purchase (purchased trough promo code)
What happened instead
The app found nothing to restore.
Not sure if this is useful, but this blog post has some information about promo codes.
Thanks but the problem is that SwifyStoreKit doesn't seem to find the purchase if it was acquired thanks to a in-app promo code...
This is also a problem with auto-renewing subscriptions. User cannot restore product if they used a promo-code to purchase.
Same issue for me. I want to reward active contributors (e.g. those who report bugs) with a free subscription. SwiftyStoreKit can't restore the products after they are redeemed in the App Store, though.
same problem
Do IAPs unlocked with a promo-code show up in the receipt?
If so you could verify your purchases or subscriptions rather than restoring purchases.
Found some more info here, not sure if it's useful:
https://stackoverflow.com/questions/44336622/when-redeem-an-in-app-purchase-promo-code-my-app-doesnt-handle-it/44621395#44621395
And this, from the Apple Developer forums:
https://forums.developer.apple.com/message/229632#229632
Can anybody confirm promo codes are working using this lib?
I can't for consumable or subscription, even if restore (using SwiftyStoreKit.verifyReceipt) only works for non consumable
Found some more info here, not sure if it's useful:
https://stackoverflow.com/questions/44336622/when-redeem-an-in-app-purchase-promo-code-my-app-doesnt-handle-it/44621395#44621395
And this, from the Apple Developer forums:
https://forums.developer.apple.com/message/229632#229632
Hi, Are you suggesting to write our own routine above swiftyStoreKit to handle promo code ?
any news?
Same problem for me. Redeeming promo codes for auto-renewable subscriptions is not recognized in my code base. Also, when redeeming in the App Store I get no feedback. Usually App Store says to "Redeem another code" or something like that. I even don't get that.
Hi, any update on this for subscription piece for redemption codes? :)