LeNI
LeNI

Reputation: 1184

how to fix the problem Razorpay iOS implementation

in iOS implementation of Razorpay swift5.1

enter image description here

Upvotes: 0

Views: 185

Answers (1)

Mayur Wadpalliwar
Mayur Wadpalliwar

Reputation: 66

For Swift version 5.1+, ensure that you declare var razorpay: RazorpayCheckout!. For versions lower than 5.1, you may use var razorpay: Razorpay!.

Alternatively, you can use the following alias and retain the variable as Razorpay.

typealias Razorpay = RazorpayCheckout

Upvotes: 1

Related Questions