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:
- Implement the logic of getting payment tokens in one of the following ways:
- Call the
createOrderByItemSku
method of the Store library and pass data about the item and its quantity to it. - Call the Create order with specified item API endpoint.
- Use your own server methods or BaaS solution methods.
- Call the
- Open the payment UI. To do this, call the
createIntentBuilder
method of the Payments library and pass the payment token. - Implement payment result handling.
SDK reference documentation
Learn more about SDK methods and its parameters.
Was this article helpful?
Thank you for your feedback!
We’ll review your message and use it to help us improve your experience.Useful links
Last updated: October 3, 2024Found a typo or other text error? Select the text and press Ctrl+Enter.