Purchase via shopping cart
This method is suitable for selling items of any type and in any quantity for real currency.
Note
When purchasing via the shopping cart, the opportunity to use promotional codes is provided.
- In the application UI, add the following elements:
- buttons for adding items to the cart
- form for viewing and editing the contents of the cart
- button to buy items in the cart
Note
In the application UI, it should not be available to add to the cart items that are sold only for virtual currency.
- Implement the logic of filling and editing the cart.
Note
Before calling the method for filling the cart, you won’t have information about promotions applied to the purchase. This means that the total cost and details of the added bonus items will be unknown.
- Implement the display of the cart contents in one of the following ways:
- Using the Store library methods (recommended).
- Using the IGS API.
- Using your own server methods or BaaS solution methods.
- Implement receiving of a payment token in one of the following ways:
- Using the Store library methods (recommended).
- Using the IGS API.
- Using your own server methods or BaaS solution methods.
- Implement payment UI opening. To do this, call the
createIntentBuilder
method of the Payments library and pass the payment token. - Implement payment result handling.
Methods for filling and editing the cart
Methods for getting the contents of the cart
Methods for obtaining a payment token
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.