question

moonbasedesign avatar image
moonbasedesign asked

How best to run an IAP sale with multiple stores

We have a Unity/ Android project using PlayFab.

We have defined two stores in the catalog to offer "sale" items. If we want to start the store each weekend (say 5pm Friday to 8am Monday) does the PlayFab API offer a way to reliably determine a player's local time so we can dynamically choose the store as we initialize the Purchase flow in: private void RefreshIAPItems() { PlayFabClientAPI.GetStoreItems(new GetStoreItemsRequest() , result => { Store = result.Store;

             // Make UnityIAP initialize
             InitializePurchasing();
         }, error => Debug.LogError(error.GenerateErrorReport()));
     }

Thanks

In-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

·
Xiao Zha avatar image
Xiao Zha answered

Currently, PlayFab API doesn’t have such feature for you to determine a player's local time so you can dynamically choose the store. You may need to implement it by yourself. Also, the local time can be modified by the player, so it’s not reliable.

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.