Pay3 React Native SDK
Initialize
3min
react app dependencies 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 "dependencies" { "@pay3/sdk react native" "^1 0 6", "@react native async storage/async storage" "^1 21 0", "react native webview" "^13 6 4" } initpay3() 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 index js import { initpay3 } from '@pay3/sdk react native'; const pay = await initpay3({ clientid, hostname, firebaseconfigs, ispaymentmode true, appdeeplink, });