I'm trying to implement Facebook Canvas Pay.
I'm doing these steps: StartPurchase, FB.Canvas.Pay, PayForPurchase, ConfirmPurchase
everything is working pretty well except for asynchronous payments. When I call ConfirmPurchase, they return an error condition that looks like this:
Failed by payment provider (PlayFabError(FailedByPaymentProvider, Failed by payment provider, 400 BadRequest - Details: ProviderErrorCode: | ProviderErrorMessage: | ProviderErrorDetails: | ProviderOrderId: | ))
PayForPurchase result returned state 'init' and the transaction is most likely pending in facebook's system.
if I keep calling ConfirmPurchase (the facebook testbed gives you a purchase that succeeds or fails after 30 seconds), I get the same error regardless of whether the transaction is still pending or has completed with an error. If the transaction succeeds, I get a success state and award correctly.
How do I tell "pending" from "failed" for asynchronous payments?