razorpay / razorpay-flutter

Razorpay Flutter Plugin
MIT License
106 stars 144 forks source link

Razorpay Not working on IOS devices. #384

Open salman0017 opened 1 month ago

salman0017 commented 1 month ago

Please provide all the information requested. Issues that do not follow this format are likely to stall.

Description

Error logs: -canOpenURL: failed for URL: "paytmmp://upi/pay" - error: "The operation couldn’t be completed. (OSStatus error -10814.)" -canOpenURL: failed for URL: "credpay://upi/pay" - error: "The operation couldn’t be completed. (OSStatus error -10814.)" -canOpenURL: failed for URL: "paytmmp://upi/pay" - error: "The operation couldn’t be completed. (OSStatus error -10814.)" -canOpenURL: failed for URL: "credpay://upi/pay" - error: "The operation couldn’t be completed. (OSStatus error -10814.)" PaymentFailureResponse: ERROR: 2 - Payment processing cancelled by user flutter: NampCms : ERROR....: {origin: checkout-frame, theme_color: null}

/Users/vivek.shindhe/Razorpay/iOS/razorpay-ios/RazorpayIOS/CheckoutOtpelf/Classes/RazorpayCheckoutVC.swift deinitialized

Flutter Version :

Flutter 3.19.4 • channel stable • https://github.com/flutter/flutter.git Framework • revision 68bfaea224 (2 months ago) • 2024-03-20 15:36:31 -0700 Engine • revision a5c24f538d Tools • Dart 3.3.2 • DevTools 2.31.1

Xcode Version :

14.3

Cocoapod Version :

Steps To Reproduce

Provide a detailed list of steps that reproduce the issue.

1.once order created

  1. _razorpay.open(options); open the checkout image, immediately Razorpay.EVENT_PAYMENT_ERROR response callback is called.

Expected Results

it should launch checkout page allow user to make payment.

Snack, code example, screenshot, or link to a repository:

Please provide a link to a repository on GitHub, or provide a minimal code example that reproduces the problem. You may provide a screenshot of the application if you think it is relevant to your bug report. Here are some tips for providing a minimal example: https://stackoverflow.com/help/mcve

vivekshindhe commented 1 month ago

@salman0017 have you added these UPI applications in the info.plist? This is to let the OS know that the project will try to query for these applications. You can follow this link to add these apps to the info.plist of your iOS project.