Troubleshooting & FAQs

Know how to troubleshoot common error scenarios and find answers to frequently asked questions about Standard Cordova Integration.


1. What should I do if I see the following error?

dyld: Library not loaded: @rpath/libswiftCoreGraphics.dylib
Referenced from: /private/var/mobile/Containers/Bundle/Application/696F0EAD-E2A6-4C83-876F-07E3D015D167/<Your_App>.app/Frameworks/<Framework_Name>.framework/<Framework_Name>
Reason: image not found

To fix the above error message:

  • Set the Embedded Content Contains Swift Code (EMBEDDED_CONTENT_CONTAINS_SWIFT) build setting to YES in your app. To know more, refer to .
  • Ensure that you have the framework added in Frameworks, Libraries, and Embed Content under Target settings - General. Ensure the Embed status is 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

.

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

.

4. What is the process for raising a request for a new feature?

To raise a request for a new feature, navigate to New IssueFeature Request on our

.

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:

  1. Use for launching the app on your Mac.
  2. Add the following lines to Podfile:

Handy Tips

Add the following code inside post_install do |installer|.

installer.pods_project.build_configurations.each do |config|
config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64"
end

Know more about

.


Is this integration guide useful?