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.
To implement the logic of one-click purchases:
- Call the
PurchaseSDK method of the
Catalogclass. This method encapsulates methods for creating an order and tracking the order status. When calling this method, pass a function that is called when the order transitions to the
donestatus in the
- Update the inventory on the client side of the application using one of the following options:
- using SDK methods for displaying user inventory
- using the order content data that is passed to the
onSuccesscallback function of the purchase methods
Was this article helpful?
Rate this page
Don’t want to answer
Thank you for your feedback!
Found a typo or other text error? Select the text and press Ctrl+Enter.