Purchase of single item
The SDK includes methods that allow you to implement a simplified purchase logic.
These methods automatically determine how the item is purchased (with real currency, virtual currency, or for free), implement the necessary logic, and track the order status.
Restrictions:
- Only one item per purchase.
- No shopping cart.
- If a product has a price in real and virtual currency, the purchase logic for virtual currency is automatically implemented.
To implement the logic of purchasing a single item, use the SDK methods:
PurchaseCurrencyPackage
for a virtual currency packagePurchaseStoreItem
for a virtual item or bundle
To track the transition of an order to the done
status, subscribe to the success
event.
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: January 22, 2024Found a typo or other text error? Select the text and press Ctrl+Enter.