Initialize
3min
The Pay3 react native sdk @pay3/sdk-react-native needs additional libraries to be added to app's package.json namely @react-native-async-storage/async-storage and react-native-webview. These provide native support in Android and iOS devices.
This function initialises Pay3 SDK to support Fiat Checkout flow.
Pay3 team shares values for hostname, clientId and firebaseConfigs during onboarding. Following parameters can be used for creating new instance of Pay3.
Parameters
- hostname: Pay3 will be opened in a new window using this hostname prefix. The host name is environment dependent.
- clientId: A unique client id is created for each client application. The client id is environment dependent.
- isPaymentMode : Pass true for fiat checkout in payments only mode.
- firebaseConfigs: JSON config 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.
Updated 08 Feb 2024
Did this page help you?