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
Note
The Xsolla Login widget appears when user navigates to the store in the following cases:
- The user is not authenticated.
- The user’s token has expired.
To handle successful purchases, subscribe to the XsollaReadyToUseStore.OnPurchaseSuccess
event (recommended).
Was this article helpful?
Thank you for your feedback!
We’ll review your message and use it to help us improve your experience.Found a typo or other text error? Select the text and press Ctrl+Enter.