Hi,
Purchasing multiple virtual currency bundles in one transaction does not appear to work.
I have defined a catalog bundle with bundle contents set as one item:
- Virtual currency (Sheckles) with a quantity of X.
This catalog bundle is purchasable via one of the stores for a (test amount) of zero Sheckles.
I can purchase one of these bundles successfully and see the virtual currency increase. These steps appear to happen correctly:
- Complete the transaction using the single-step PurchaseItem API from the client code.
- The bundle is added to the user inventory on PlayFab.
- Virtual currency is automatically unpacked into the user's virtual currency, I can see this updated on PlayFab.
- The bundle is destroyed via the consumable mechanism.
When attempting to purchase multiple of these bundles using the three-step API the virtual currency amount is not updated correctly.
- StartPurchase
- PayForPurchase
- ConfirmPurchase
Following through in the debugger:
- I can see that each of the three purchase steps appear to successfully complete with no errors or warnings.
On PlayFab:
- I can see all of the bundles appear temporarily in the user inventory before being destroyed automatically via the bundle consumption mechanism.
- Only one of the amounts of virtual currency is ever updated for the user.
So for example, if the bundle contained 1000 x Sheckles and I bought 5 of those bundles, my virtual currency amount would only increase by 1000 Sheckles instead of 5000 Sheckles.
Please let me know if this is an error in our code or setup, or if this is a limitation of PlayFab.
Thanks for your help!