Hello, we have set up our backend server to do a custom Xsolla + Playfab integration (not using the Playfab "Xsolla Addon" so that we can use custom XSolla UI styling) where we receive the Xsolla webhooks on our backend and finish up the transactions.
Our current flow looks like the following:
Client (Unity) creates a `StartPurchaseRequest` -> Recieves an OrderID Client sends a request to Backend with (OrderID, PlayfabID) Backend calculates the correct price and requests an Xsolla payment token for the purchase, and returns it to the Client Client opens Xsolla Paystation with token and Pays amount Xsolla sends Backend a Payment-Made confirmation with (OrderID, PlayfabID) info
All of this is working, and the last steps I would like to do are the following:
Backend Retrieves Item info for OrderID and grants items to user (from PlayfabID) Backend sets OrderID for Player as "Succeeded" (instead of "Cart created")
What would be the easiest way to do this? I have not found an API to let me get a 'cart' based on a PlayfabID + OrderID which is what seemed intuitive to me.
I think it is probably possible to achieve this with cloud code, but that seems more complex (don't have any cloud code in project currently).
As for the last step, it might not be critical, but it would be nice so that the Client can use the GetPurchase method as intended on the OrderID that they created.
Thanks for the help!