Grishma Sagar
Grishma Sagar

Reputation: 31

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:

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

Upvotes: 3

Views: 2330

Answers (3)

Krunal Nagvadia
Krunal Nagvadia

Reputation: 1162

Please add your Framework & Library inside Link Binary With Libraries and clean and build your project.

enter image description here

Upvotes: 0

HarshS
HarshS

Reputation: 1

Make xcode install specific version of pod using:

pod 'razorpay-pod', '1.1.5'

This solved same issue for me.

Upvotes: 0

Rushabh Shah
Rushabh Shah

Reputation: 400

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

Upvotes: 1

Related Questions