Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Failed to load module Razorpay

The following images are part of my app. I am using swift 5.0 which I have already given in image. I have installed pod from https://razorpay.com/docs/payment-gateway/ios-integration/standard/. website. In that razorpay for swift 5.0 is given. I followed the same steps. In my podfile , I have written also version,but still the updated pod has been installed. So I have many issues which I have put in following images. I have no solutions. I also downloaded razorpay SDK for swift 5.0, but same issue with SDK. I tried both methods:

  • Using SDK
  • Using pod But always it gives same error. I have no solution. Please anybody who has used it, plz give solution.

https://i.sstatic.net/4vd1Q.png https://i.sstatic.net/ukMkr.png https://i.sstatic.net/vpc3D.png enter code here https://i.sstatic.net/mxfKd.png

like image 699
Grishma Sagar Avatar asked Nov 19 '25 10:11

Grishma Sagar


1 Answers

Please Update your pod.

pod 'razorpay-pod', '~> 1.1.5'

After that please declare your variable like this.

import Razorpay

var razorpay: RazorpayCheckout!

razorpay = RazorpayCheckout.initWithKey(RAZ_API_KEY_TEST, andDelegate: self) //Change your key based on test or live
like image 185
Rushabh Shah Avatar answered Nov 21 '25 01:11

Rushabh Shah