Question from a developer:
What's the best way to purchase multiple items all at once, using Virtual Currency? It looks like StartPurchase is the one to use, but what PaymentProvider do I specify?
Question from a developer:
What's the best way to purchase multiple items all at once, using Virtual Currency? It looks like StartPurchase is the one to use, but what PaymentProvider do I specify?
In the call to PayForPurchase, use the title as the provider. If you have VC prices defined, your response from StartPurchase should have something similar to what's in the example in the docs:
{ "Currency": "GV", "ProviderName": "TitleA90A", "Price": 25, "StoreCredit": 0 }
So in this example, your call to PayForPurchase would specify "TitleA90A" as the PaymentProvider, and "GV" for the Currency. While this doesn't require any communication with an outside payment provider, you do then need to call ConfirmPurchase to finalize this, as that's the stage where we add the items to the player inventory.
Hello @Brendan where can I get the "TitleA90A" equivalent for my project? I tried using my title name and title ID together but it didn't worked, also I was following this tutorial https://api.playfab.com/docs/tutorials/landing-commerce/stores where PayForPurchase is used without ProviderName but when I do it that way I get "InvalidParams" error on the Unity console.
2 People are following this question.