1. What should I do if I see the following error?
Error
- Set the
Embedded Content Contains Swift Code (EMBEDDED_CONTENT_CONTAINS_SWIFT)build setting toYESin your app. To know more, refer to this Apple document. - Ensure that you have the framework added in
Frameworks, Libraries, and Embed ContentunderTarget settings-General. Ensure theEmbed statusis set to ‘Embed & Sign’.
2. Is Capacitor supported in Razorpay Cordova Plugin?
No, we do not support Capacitor in our plugin as it has its own dependencies.3. What is order id and how to generate it?
Order creation is the primary step of the Razorpay payment flow. When a customer clicks the pay button on your app, an Order is created and a corresponding order_id is generated in the response. This order_id must be passed to the Razorpay Checkout options added in your Capacitor app. Know more about Orders.4. What is the process for raising a request for a new feature?
To raise a request for a new feature, navigate to New Issue → Feature Request on our GitHub repository.5. How can I update the existing ‘razorpay-pod’?
- Go to your project’s iOS folder and run ‘pod update’ to update all the pods.
- If you do not want to update all pods, run ‘pod update razorpay-pod’.
6. In the new M1 MacBook, why am I not able to compile the Cordova Razorpay plugin for release mode?
This is because of the new changes introduced in Xcode 12. To resolve this:- Use Rosetta 2 for launching the app on your Mac.
- Add the following lines to Podfile:
Handy TipsAdd the following code inside Know more about compilation errors.
post_install do |installer|.podfile
7. How can I check the Razorpay Cordova Standard SDK version?
To check the SDK version:- Open your Cordova project in your preferred code editor.
- Navigate to the
config.xmlfile in the root directory of your project. - Look for the “ tag that includes the Razorpay SDK plugin. The version number is represented by
x.y.z.
8. How can I check the Razorpay Ionic Standard SDK version?
To check the SDK version:- Open your Ionic project in your preferred code editor.
- Open the
package.jsonfile in the root directory of your project. - In the
dependenciessection, look for the Razorpay entry. The version number is specified next to the package name in the formatx.y.z.
9. How can I update the Razorpay Cordova and Ionic Standard SDK version?
To update the SDK version using npm, follow these steps:- 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
(replacewith the name of the package you want to update). - If you are using a Cordova iOS application, run
cd platforms && 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.