简体   繁体   中英

Redeem code for in app purchases in Android

I have been searching how to generate redeem code for in app purchase in Android but no luck. I guess there is nothing like that. I developed an android app and I sell an item in the app. I want to give a code some users to buy the item with that code instead of paying. Is this possible ? Even if there is another ways to do ? Thank you for replies.

There is no built-in mechanism for what you want to achieve on Google Play; you will have to build this yourself.

You should treat the content you want to offer independently from any in-app purchases and offer an in-app purchase and code input to unlock the content.

Keep in mind you will not be able to benefit from restored purchases when a user has used a code to unlock the content. So if the user clears the data on the app, their unlocked content will be gone unless you keep a server-side record of the content the user has unlocked.

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