@rugbugredfern Apologies for the delayed reply. Since the system reasons, we didn't answer the question: Processing Payment Through Steam: PurchaseInitializationFailure. We will discuss the question in this thread.
Please discuss the question in this thread.
The original question:
I'm trying to use PlayFab to make a purchase through Steam, but am getting an error: "PurchaseInitializationFailure".
The StartPurchase request fires successfully, the only issue is in the PayForPurchase section. I have the Steam module enabled and set up with the correct web API key.
If I loop through the payment options like so:
void PayForPurchase(StartPurchaseResult obj) { for (int i = 0; i < obj.PaymentOptions.Count; i++) { Debug.Log("Payment options: " + obj.PaymentOptions[i].ProviderName); } }
There is only one named "Test". Any ideas?
(Title ID is D1D05)public void BuyDLC() // Called from a UI button { PlayFabClientAPI.StartPurchase(new StartPurchaseRequest() { CatalogVersion = "Primary", Items = new List<ItemPurchaseRequest>() { new ItemPurchaseRequest() { ItemId = "blood_red_dlc", Quantity = 1, Annotation = "Purchased via in-game store" } } }, PayForPurchase, BuyDLCError ); } void PayForPurchase(StartPurchaseResult obj) { Debug.Log("Started purchasing item: " + obj.Contents[0].DisplayName + " Order ID: " + obj.OrderId); PlayFabClientAPI.PayForPurchase(new PayForPurchaseRequest { OrderId = obj.OrderId, ProviderName = "Steam", Currency = "RM" }, OnPayForPurchase, OnPayForPurchaseError); }