How to avoid using different exchange codes to exchange the same item repeatedly? Is there a solution?
How to avoid using different exchange codes to exchange the same item repeatedly? Is there a solution?
Refer to Forbid abuse coupons for user - Playfab Community, as Brendan said, you can write some identification data for players when they use coupons, and then detect them before redeeming them.
As Brendan mentioned,how to know the types of coupons or how do I know if a group of coupons are of the same type?
One thing to clarify is that there is no existing api to get the type of coupon, which requires you to create it manually.
For example, first, store the coupon type and the corresponding coupon on the server, such as {"First coupon":["Coupon1","Coupon2"]}.When the player redeems, look up the type corresponding to the passed in coupon in the server, and then check whether this type exists in the player's PlayerData. If it does not exist, call the api to redeem, and write {"coupon type":"coupon"} into PlayerData after the redemption is successful.
2 People are following this question.