How do I resolve the following error?
How do I resolve the following error?
-
Set the
Embedded Content Contains Swift Code (EMBEDDED_CONTENT_CONTAINS_SWIFT)build setting toYESin your app. Know more here. -
Navigate to Target Settings → General and ensure that:
- The framework is added in Frameworks, Libraries, and Embed Content.
- Change Embed status from - ‘Do not Embed’ to ‘Embed & Sign’.
- Verify that you have installed CocoaPods.
How do I auto-link the Razorpay React Native SDK with my app?
How do I auto-link the Razorpay React Native SDK with my app?
How do I integrate the Razorpay SDK if my React Native app version is 0.59 and lower?
How do I integrate the Razorpay SDK if my React Native app version is 0.59 and lower?
- Install the SDK.
- Link the SDK.
- Configure the SDK.
- Drag the Razorpay.framework file from the Libraries folder and drop it under the root folder.
- Set the
Embedded Content Contains Swift Code (EMBEDDED_CONTENT_CONTAINS_SWIFT)build setting toYESin your app. Know more here. - Navigate to Target Settings → General and ensure that:
- The framework is added in Frameworks, Libraries, and Embed Content.
- Change Embed status from - ‘Do not Embed’ to ‘Embed & Sign’.
How do I install the Razorpay React Native SDK through manual linking?
How do I install the Razorpay React Native SDK through manual linking?
For iOS (via CocoaPods)
Add the following line to your build targets in your Podfile.For iOS (without CocoaPods)
- In XCode, go to the project navigator:
- Right-click Libraries.
- Add files to [your project’s name].
- Go to
node_modules/react-native-razorpay. - Add the
.xcodeprojfile.
- In the project navigator, select your project:
Add the libRNDeviceInfo.afrom the deviceinfo project to your project’s Build Phases ➜ Link Binary With Libraries.- Click
.xcodeprojfile you added before in the project navigator and go to the Build Settings tab. Make sure All is selected (instead of Basic). - Look for Header Search Paths and make sure it contains both
$(SRCROOT)/../react-native/Reactand$(SRCROOT)/../../React. Mark both as recursive (should be OK by default).
- Run your project using the Cmd+R keys.
For Android
Follow the steps to perform manual linking:Open android/app/src/main/java/[...]/MainApplication.java.- Add
import com.razorpay.rn.RazorpayPackage;to the imports. - Add
new RazorpayPackage()to the list returned by thegetPackages()method.
- Add
- Append the following lines to
android/settings.gradle:
- Insert the following lines inside the dependencies block in android/app/build.gradle:
How can I update the existing **'razorpay-pod'**?
How can I update the existing **'razorpay-pod'**?
- Go to iOS folder in your project and run ‘pod update’ to update all the pods.
- If you do not want to update all pods, run ‘pod update razorpay-pod’
What is the process for raising a request for a new feature?
What is the process for raising a request for a new feature?
I am facing issues integrating the Razorpay React Native Plugin with my React Native Expo app. How do I resolve this?
I am facing issues integrating the Razorpay React Native Plugin with my React Native Expo app. How do I resolve this?
In the new M1 MacBook, why am I not able to compile the React Native Razorpay plugin for release mode?
In the new M1 MacBook, why am I not able to compile the React Native Razorpay plugin for release mode?
- Use Rosetta 2 for launching the app on your Mac.
- Add the following lines to Podfile within
post_install do |installer|.
How can I update the Razorpay React Native Standard SDK version?
How can I update the Razorpay React Native Standard SDK version?
- Open the terminal or command prompt and navigate to your project directory where the
package.jsonfile resides. - Use the npm update command followed by the package name to update a specific package to its latest version. For example, npm update
<razorpay_package_name>(replace<razorpay_package_name>with the name of the package you want to update). - If you are using a React Native iOS application, run
cd ios && pod repo update && pod updateto ensure the internal iOS dependencies are updated to the versions set by the Razorpay package. This is because cocoapods may not automatically update the internal trunk spec to fetch the latest versions. - After running the update command, review the updates fetched by npm to ensure they do not introduce any breaking changes.
- Conduct thorough testing to ensure that the updated packages do not adversely affect the application functionality and commit the changes.