SDK for Unity (PC, web) / Purchase for virtual currency
  Back to Docs

SDK for Unity (PC, web)

Purchase for virtual currency

This method is suitable for selling one item SKU without choosing the quantity or adding it to the cart.

To implement the logic of using virtual currency to purchase items:

  1. Call the PurchaseForVirtualCurrency SDK method. When calling it, pass a function that is called when the order transitions to the done status in the onSuccess parameter.

  1. Update the inventory on the client side of the application using one of the following options:

  1. Update the user's virtual currency balance using the GetVirtualCurrencyBalance SDK method.
SDK reference documentation
Learn more about SDK methods and its parameters.
Was this article helpful?
Thank you!
Is there anything we can improve? Message
We’re sorry to hear that
Please explain why this article wasn’t helpful to you. Message
Thank you for your feedback!
We’ll review your message and use it to help us improve your experience.

Useful links

Last updated: January 22, 2024

Found a typo or other text error? Select the text and press Ctrl+Enter.

Report a problem
We always review our content. Your feedback helps us improve it.
Provide an email so we can follow up
Thank you for your feedback!