Hey PlayFab,
I am currently writing the payment processing code for my game. I have it set up so that we start the purchase using StartPurchase, then we trigger the Facebook Payment Dialog, then once it completes we call PayForPurchase to advise PlayFab that the purchase has completed. I am becoming confused by the ConfirmPayment API now though. Everywhere on your website and on the forums, I see that we are supposed to poll this API while a payment is pending, but the API has no errors, and the only results that it returns is the PurchaseDate. This means it doesn't seem that we can't use that API to tell the status of the payment. In addition to that, it doesn't even appear that the call is necessary most of the time, as payments settle themselves after a period of time. Currently I have the logic set to do PayForPurchase, then immediately call ConfirmPayment in case the confirmation was immediate (so most of the time the user gets their purchase immediately). In the case that the payment is not immediate, it appears PlayFab will, at a later time, automatically complete the purchase (contrary to the suggestion that we need to poll). Could you guys point me to some information on how this is intended to be implemented, or provide some information here?
P.S. It would be really awesome if you guys could provide better documentation around the flow of your API's as well as providing details about what things even exist (the OpenGraphAPI endpoints for Facebook store items don't appear anywhere in your documentation for instance).
Cheers, Brett