Initialization
Call the XsollaReadyToUseStore.OpenStore()
method to display the store and initialize all related logic. Add this call at an appropriate place in a user scenario in your application, e.g., when clicking the Open store button.
This method automatically adds the StoreDirector
prefab to the scene, which handles:
- user authentication
- item catalog loading
- store UI rendering
- The user is not authenticated.
- The user’s token has expired.
To handle successful purchases, subscribe to the XsollaReadyToUseStore.OnPurchaseSuccess
event. This event is fired when an order moves to the done
status. For more information on the order status tracking mechanism, refer to the instruction.
After integrating the Ready-to-use store module, you can accept payments in the sandbox environment. To start accepting real payments, follow the instructions in the Go live section.
Found a typo or other text error? Select the text and press Ctrl+Enter.