简体   繁体   中英

Will there be an IAP callback for redeeming a promo code to exchange for a non-consumable product in iOS?

My problem is, the users cannot get the non-consumable item by redeeming the code.

I can confirm the non-consumable items can be bought correctly. I used the app receipt to check whether the user owns it. I'll find through all the products to see if there's one the product id is matching.

I cannot find any useful docs to debug the redeeming process. I don't even know if there should be a callback when the app starts. Like the transactions are not completed.

How is redeeming handled behind the scene?

If the app is open after I redeemed a code, how should the app know the user 'bought' the item? How should I know when to send them the contents?

If the users try to buy the item they redeemed, they are told they can get it for free, and I see the purchase succeed callback. But then I check app receipt, the product still not exists. I got these logs from the users.

By the way I'm using in_app_purchase plugin from Flutter. And for checking the app receipt I'm using https://github.com/robotmedia/RMStore .

Products redeemed with a promo code will appear on the receipt just as a purchased product would - you won't be able to differentiate from the receipt a purchase vs promo code.

There isn't a callback on the device for promos specifically, if you refresh the receipt or the user restores transactions you should see the product in the receipt.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM