SDKs for Unity / Purchase in one click
 Back to Docs

SDKs for Unity

  • Integration guide

  • Demo project

  • Authentication

  • Catalog

  • Subscriptions

  • Promotions

  • Item purchase

  • Player inventory

  • User account and attributes

  • Application build guides

  • Troubleshooting


  • Purchase in one click

    You can implement a simplified process of purchasing items in your application. This method is suitable for the sale of one SKU in any quantity. For example, 100 identical potions.

    In this case, the user will proceed to payment right after selecting the item and its quantity, without adding items to the cart.

    Note
    The information about the discount (personalized or related to the purchase) will be available to the user only in the payment UI. The use of promo codes is not provided.
    To implement the logic of one-click purchases:
    1. Get a payment token. To do this, call the PurchaseItem SDK method and pass data about the item and its quantity to it.
    2. Open the payment UI. To do this, call the OpenPurchaseUi SDK method and pass the payment token and order ID to it.
    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.
    Rate this page
    Rate this page
    Is there anything we can improve?

    Don’t want to answer

    Thank you for your feedback!

    Useful links

    Last updated: September 6, 2022

    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!