You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sachin Nautiyal edited this page Jan 22, 2020
·
1 revision
iOS
$ npm i react-native-razorpay --save // Install the Razorpay React Native Standard SDK using the npm command.
react-native link react-native-razorpay // Link the SDK with React Native Project using Xcode.
Drag the Razorpay.framework file from the Libraries folder and drop it under the root folder, for more info follow this link,
after this go to Target > General Settings> Framework, Libraries and Embedded Content section, set the Embed status of Razorpay.framework to Embed & Sign.
Also make sure the razorpay framework is added in the embedded binaries section and you have Always Embed Swift
Standard Binaries set to yes in build settings.
Android
Open up android/app/src/main/java/[...]/MainApplication.java
Add import com.razorpay.rn.RazorpayPackage; to the imports at the top of
the file
Add new RazorpayPackage() to the list returned by the getPackages() method
Append the following lines to android/settings.gradle:
include ':react-native-razorpay'
project(':react-native-razorpay').projectDir =newFile(rootProject.projectDir, '../node_modules/react-native-razorpay/android')
Insert the following lines inside the dependencies block in
android/app/build.gradle: