question

Name avatar image
Name asked

Buy item with hard currency and discount

Can I add a discount to a purchase using hard currency?

We buy a chest for 100 coins. The next chest should have a 10% discount (90 coins). Do you need to use cloud script for this logic?

Another variant is using diffrent bundles(normal and discounted). When buying, is it possible to somehow write down(in playfab) that the next one should be at a discount?

CloudScriptIn-Game Economy
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
Seth Du avatar image
Seth Du answered

Store has an override feature for players in different segments. If the chest item is rare and you may divide players into different segments. For example, new players in tier one and players have bought once can be categorized into tier two. You may create a Store, which have several override prices for different segments.

If there are many items having this feature, there will be too many overrides with lots of segments defined in your title, Cloud Script/Azure function will be necessary. Catalog items are global resource for a title, usually it won’t change by the client or player’s behavior. You will need to add flags in Player Read-Only/Internal Data to store the purchase processes so that function will calculate the discounted price.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.