Additional parameters for OpenStore()
The XsollaReadyToUseStore.OpenStore()
method supports additional configuration that allows you to tailor the behavior of the module using custom parameters.
Method signature:
Copy
- C#
1XsollaReadyToUseStore.OpenStore(
2 ReadyToUseStoreConfig config = null,
3 IPrefabsProvider prefabsProvider = null,
4 IStoreListener storeListener = null
5);
Parameters:
сonfig
— a configuration object containing additional store launch settings. Available fields:
Field | Type | Description |
---|---|---|
Locale | string | The language of the Xsolla Login widget and the payment UI (e,g., “en” ). Supported values are listed in the Localization section. |
TokenData | TokenData | Tokens for user authentication without using the Xsolla Login widget. |
CatalogParent | Transform | The UI container into which the store is embedded. |
IsDontDestroyOnLoad | boolean | Whether to persist the store between scenes, false by default. |
IsCheckEventSystemExists | boolean | Whether to check for the presence of the EventSystem component on the scene before launching the store. If true is passed and the EventSystem component is missing, it will be created automatically. true by default. |
prefabsProvider
— an object implementing theIPrefabsProvider
interface, which allows you to replace standard UI prefabs with your own (e.g., item cards, buttons).storeListener
— an interface for handling events such as a successful purchase or a store closing.
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.