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

Razor pay ios implementation issue #90

Closed ayushP2400 closed 4 years ago

ayushP2400 commented 4 years ago

getting error:-

/Users/sachinnautiyal/Documents/Razorpay/razorpay-ios/RazorpayIOS/CheckoutOtpelf/Classes/InternalRazorpay.swift:["payment failed"] /Users/sachinnautiyal/Documents/Razorpay/razorpay-ios/RazorpayIOS/CheckoutOtpelf/Classes/RazorpayCheckoutVC.swift deinitialized /Users/sachinnautiyal/Documents/Razorpay/razorpay-ios/RazorpayIOS/CheckoutOtpelf/Classes/RazorpayCheckoutWebView.swift:["/Users/sachinnautiyal/Documents/Razorpay/razorpay-ios/RazorpayIOS/CheckoutOtpelf/Classes/RazorpayCheckoutWebView.swift deinitialized"]

IDE Specs

xcode 11

Razorpay Standard SDK 1.2.1

Retro Steps

let options: [String:Any] = [ "amount": price, //This is in currency subunits. 100 = 100 paise= INR 1. "currency": "INR",//We support more that 92 international currencies. "description": "purchase description", "order_id": self.txnId, "image": "", "name": "ewfd", "prefill": [ "contact": "(login_model.shared.user_mobile)", "email": "(login_model.shared.user_email)" ], "theme": [ "color": "#212038" ] ]

    DispatchQueue.main.async {
        self.razorpay.open(options, display: self)
    }

Screenshots

RPReplay_Final1581932266.MP4.zip

Nautiyalsachin commented 4 years ago

Hi @ayushP2400, can you try it without an order id? If it works without order id then check your order id logic again. Also validate your Razorpay key, is that correct or not.

Nautiyalsachin commented 4 years ago

Closing this issue due to the time elapsed.

Please feel free to either re-open the issue or create a new issue if you have any additional queries.

Swapna67m commented 3 years ago

check your razorpay key. it may be expired.

nimishaJoshy commented 3 years ago

Hi @ayushP2400, can you try it without an order id? If it works without order id then check your order id logic again. Also validate your Razorpay key, is that correct or not.

worked for me on Jul 28 th 2021.