question

bbord22 avatar image
bbord22 asked

Missing access to certain classes

Upon trying to set up a RM purchase demo for my game and following pertinent guides, I've found that I'm not able to access some of the classes that the guides use. As an example, StartPurchaseCallback doesn't seem to be a class available to me in PlayFabClientAPI. Why could this be?

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
brendan avatar image
brendan answered

The callbacks are actually your code - not part of the SDK. If you have a look at the StartPurchase call in the SDK you're using, you'll see that they accept callbacks (we just happened to call ours "StartPurchaseCallback" in our example) that our code calls into, where you can take any action you need to based on the results. There's also an error callback that you should use to process any error cases.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.