locked
RequestProductPurchaseOperation with consumer preview?

    Question

  • On the developer preview we got that RequestProductPurchaseAsync method would return a RequestProductPurchaseOperation class to be used to check the state of the operation. Now it returns a IAsyncAction interface, how mut we manipulate this to get the actual state / result?
    Wednesday, March 07, 2012 10:07 PM

All replies

  • If the purchase fails an exception will be raised. You can also check if the ProductLicense is active. See scenario 2 in the Trial app and in-app purchase sample for an example (C#, but it should give you the idea).
    Thursday, March 08, 2012 8:16 PM
    Owner
  • Thanks for pinpointing the example, but this is really a big different way then I had already working with the developer preview. If I do not want to use exceptions to check the failure status or even "await" way. Could I jut pool the IAsyncAction until I get either the ok or the error code? . Also how do I know why the application failed to be purchased?

    Friday, March 09, 2012 5:02 PM