SwiftyStoreKit icon indicating copy to clipboard operation
SwiftyStoreKit copied to clipboard

Can't restore purchases if promo code is used

Open GDGapps opened this issue 7 years ago • 13 comments

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.

GDGapps avatar Aug 31 '17 21:08 GDGapps

Not sure if this is useful, but this blog post has some information about promo codes.

bizz84 avatar Sep 08 '17 10:09 bizz84

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...

GDGapps avatar Sep 14 '17 12:09 GDGapps

This is also a problem with auto-renewing subscriptions. User cannot restore product if they used a promo-code to purchase.

joehiaero avatar Oct 12 '17 20:10 joehiaero

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.

caloon avatar Oct 26 '17 07:10 caloon

same problem

ahmedsafadii avatar Dec 29 '17 11:12 ahmedsafadii

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.

bizz84 avatar Dec 29 '17 20:12 bizz84

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

bizz84 avatar Dec 29 '17 20:12 bizz84

Can anybody confirm promo codes are working using this lib?

vitovalov avatar Dec 02 '18 00:12 vitovalov

I can't for consumable or subscription, even if restore (using SwiftyStoreKit.verifyReceipt) only works for non consumable

i-arun-samui avatar May 18 '19 05:05 i-arun-samui

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 ?

i-arun-samui avatar May 18 '19 05:05 i-arun-samui

any news?

alexanderkhitev avatar Aug 29 '19 19:08 alexanderkhitev

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.

stevenadons avatar Nov 02 '19 17:11 stevenadons

Hi, any update on this for subscription piece for redemption codes? :)

theofficejackpot avatar Jan 04 '20 18:01 theofficejackpot