Initialize
2min
The Unity SDK needs to be initialised with configuration information associated with the mobile application, firebase realtime database and Pay3 environment settings. Initialization Parameters
- pay3HostName: Pay3 will be opened in a new window using this hostname prefix. The host name is environment dependent.
- pay3ClientId: A unique client id is created for each client application. The client id is environment dependent.
- appNotify* Configs: These are config parameters for firebase realtime database. This is used to publish realtime events to the app.
- appDeepLink: This string in the form of scheme://resource can be passed during initalization. This will be used by Pay3 as referrer / redirect intent. The string needs to be whitelisted in Pay3 backend for proper working of the Pay3 services.
Following are the sample code snippets for your reference. The entire package with complete example will be provided during onboarding.
Game can use Pay3SDKConfig.cs which extends ScriptableObject. This accepts all settings required for Pay3 SDK. Game can create an asset using this. The asset needs to be passed to Pay3Helper.cs instance.
Game can instantiate Pay3Helper.cs that extends MonoBehaviour. This loads configuration from Pay3SDKConfig during the Start.
Updated 08 Feb 2024
Did this page help you?