question

Ritik Agarwal avatar image
Ritik Agarwal asked

trading of virtual currency

I want to make a system where players can give their virtual currency to each other.

Is this possible?

if Yes, Please let me know.

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

Yes, it is possible. In the common scenario, PlayFab won’t allow the client API’s permission to modify the virtual currency. Server API and Admin API are able to do it, while adding those APIs( AddUserVirtualCurrency, SubtractUserVirtualCurrency) in client side is highly unrecommended. You will need to implement it on Cloud Script/Azure Function, please refer to: https://docs.microsoft.com/en-us/gaming/playfab/features/automation/cloudscript/ and https://docs.microsoft.com/en-us/gaming/playfab/features/automation/cloudscript-af/.

Please also note that before the VC is modified, few customized verification steps should be done in case there are abusive uses.

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.