razorpay / razorpay-pod

:iphone: CocoaPod implementation of Razorpay's Payment SDK. Refer for instructions:
https://docs.razorpay.com/v1/page/ios-integration
MIT License
21 stars 18 forks source link

Use of undeclared type 'Razorrpay' #98

Closed patelvivek9115 closed 4 years ago

patelvivek9115 commented 4 years ago

Description

I have a project with integration of Razorpay on razorpay-pod (1.1.1) without any issue (last time I checked in Feb 2020), now today I need to make some changes and provide an updated build to my client but suddenly I am getting an error saying Use of undeclared type 'Razorpay'. So I updated the pod and the latest one I installed is razorpay-pod (1.1.5) but still getting the same error. I also tried with the example project provided by git but that one also has the same issue. Could you please check and get back to me ASAP. Thanks

Razorpay pod Version :

1.1.5

Xcode Version :

11.5

What you did:

I have updated the razorpay-pod version from 1.1.1 to 1.1.5

What happened:

Use of undeclared type 'Razorrpay' ()

Steps To Reproduce

Provide a detailed list of steps that reproduce the issue.

  1. You can download the github example project and find that issue

Suggested solution:

No idea

Code example, screenshot, or link to a repository:

Screenshot 2020-07-07 at 2 55 41 PM Screenshot 2020-07-07 at 2 44 47 PM

import Razorpay

class CheckoutVC: BaseViewController {
var razorpay: Razorrpay! }

Nautiyalsachin commented 4 years ago

@patelvivek9115 : Where is the Github link?

patelvivek9115 commented 4 years ago

@Nautiyalsachin : https://github.com/razorpay/razorpay-pod.git

ambujap94 commented 4 years ago

Please use var razorpay: Razorpay! instead of var razorpay: Razorrpay!

you can follow the document here https://razorpay.com/docs/payment-gateway/ios-integration/standard/

patelvivek9115 commented 4 years ago

Please use var razorpay: Razorpay! instead of var razorpay: Razorrpay!

you can follow the document here https://razorpay.com/docs/payment-gateway/ios-integration/standard/

I have tried this "var razorpay: Razorpay! " but it does not work for me but when I changed to var razorpay: RazorpayCheckout! It is working now