razorpay / razorpay-capacitor

Capacitor wrapper around Razorpay's Android and iOS SDKs
https://www.npmjs.com/package/com.razorpay.capacitor
12 stars 29 forks source link

Razorpay Checkout popup does not open on iOS #64

Open CricStoxTech opened 1 year ago

CricStoxTech commented 1 year ago

I'm using Vuejs v3 with Quasar v2 and Capacitor v4.6.2 along with Razorpay v1.2.0

Everything works on web and android but for some reason the Checkout popup does not open up on iOS.

There is no error thrown in Xcode whatsoever. Can someone please help me fix this issue on iOS?

Thanks

CricStoxTech commented 1 year ago

@vivekshindhe Can you please look into this and provide some solution?

CricStoxTech commented 1 year ago

Possible FIX: It seems we were passing in the handler method within the options object before calling the Checkout.open(options). Due to this the popup won't open on iOS. So, this is fixed now.

Although, XCode throws a lot of error, as logged below, but things seem to work fine for now...

@vivekshindhe , can you please suggest/ comment on the below error:

⚡️ To Native -> Checkout open 20430527 2023-02-07 19:23:18.278682+0530 App[471:30416] [Client] Updating selectors after delegate removal failed with: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service on pid 87 named com.apple.commcenter.coretelephony.xpc was invalidated from this process." UserInfo={NSDebugDescription=The connection to service on pid 87 named com.apple.commcenter.coretelephony.xpc was invalidated from this process.} 2023-02-07 19:23:18.286184+0530 App[471:30416] [Client] Updating selectors after delegate removal failed with: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service on pid 87 named com.apple.commcenter.coretelephony.xpc was invalidated from this process." UserInfo={NSDebugDescription=The connection to service on pid 87 named com.apple.commcenter.coretelephony.xpc was invalidated from this process.} 2023-02-07 19:23:18.498142+0530 App[471:30309] [connection] nw_endpoint_handler_set_adaptive_read_handler [C1.1 15.207.83.144:443 ready channel-flow (satisfied (Path is satisfied), viable, interface: en0, ipv4, ipv6, dns)] unregister notification for read_timeout failed 2023-02-07 19:23:18.498209+0530 App[471:30309] [connection] nw_endpoint_handler_set_adaptive_write_handler [C1.1 15.207.83.144:443 ready channel-flow (satisfied (Path is satisfied), viable, interface: en0, ipv4, ipv6, dns)] unregister notification for write_timeout failed 2023-02-07 19:23:18.504639+0530 App[471:30309] [connection] nw_endpoint_handler_set_adaptive_read_handler [C2.1 65.0.35.89:443 ready channel-flow (satisfied (Path is satisfied), viable, interface: en0, ipv4, ipv6, dns)] unregister notification for read_timeout failed 2023-02-07 19:23:18.504704+0530 App[471:30309] [connection] nw_endpoint_handler_set_adaptive_write_handler [C2.1 65.0.35.89:443 ready channel-flow (satisfied (Path is satisfied), viable, interface: en0, ipv4, ipv6, dns)] unregister notification for write_timeout failed 2023-02-07 19:23:19.154925+0530 App[471:30116] WF: _userSettingsForUser mobile: { filterBlacklist = ( ); filterWhitelist = ( ); restrictWeb = 1; useContentFilter = 0; useContentFilterOverrides = 0; whitelistEnabled = 0; } 2023-02-07 19:23:19.154978+0530 App[471:30116] WF: _WebFilterIsActive returning: NO 2023-02-07 19:23:19.215734+0530 App[471:30429] [connection] nw_endpoint_handler_set_adaptive_read_handler [C3.1 108.159.28.72:443 ready channel-flow (satisfied (Path is satisfied), viable, interface: en0, ipv4, ipv6, dns)] unregister notification for read_timeout failed 2023-02-07 19:23:19.217935+0530 App[471:30429] [connection] nw_endpoint_handler_set_adaptive_write_handler [C3.1 108.159.28.72:443 ready channel-flow (satisfied (Path is satisfied), viable, interface: en0, ipv4, ipv6, dns)] unregister notification for write_timeout failed 2023-02-07 19:23:19.591695+0530 App[471:30116] -canOpenURL: failed for URL: "tez://upi/pay" - error: "This app is not allowed to query for scheme tez" 2023-02-07 19:23:19.592544+0530 App[471:30116] -canOpenURL: failed for URL: "phonepe://pay" - error: "This app is not allowed to query for scheme phonepe" 2023-02-07 19:23:19.593256+0530 App[471:30116] -canOpenURL: failed for URL: "paytmmp://upi/pay" - error: "This app is not allowed to query for scheme paytmmp" 2023-02-07 19:23:19.593981+0530 App[471:30116] -canOpenURL: failed for URL: "tez://upi/pay" - error: "This app is not allowed to query for scheme tez" 2023-02-07 19:23:19.594704+0530 App[471:30116] -canOpenURL: failed for URL: "phonepe://pay" - error: "This app is not allowed to query for scheme phonepe" 2023-02-07 19:23:19.595499+0530 App[471:30116] -canOpenURL: failed for URL: "paytmmp://upi/pay" - error: "This app is not allowed to query for scheme paytmmp" 2023-02-07 19:23:19.652194+0530 App[471:30309] [connection] nw_endpoint_handler_set_adaptive_read_handler [C4.1 65.0.35.89:443 ready channel-flow (satisfied (Path is satisfied), viable, interface: en0, ipv4, ipv6, dns)] unregister notification for read_timeout failed 2023-02-07 19:23:19.652292+0530 App[471:30309] [connection] nw_endpoint_handler_set_adaptive_write_handler [C4.1 65.0.35.89:443 ready channel-flow (satisfied (Path is satisfied), viable, interface: en0, ipv4, ipv6, dns)] unregister notification for write_timeout failed ERROR MESSAGE: {"code":"{\"name\":\"\",\"email\":\"test@email.com\",\"contact\":\"+918800880088\"}","message":"","errorMessage":""} ⚡️ [error] - {"code":"{\"name\":\"\",\"email\":\"test@email.com\",\"contact\":\"+918800880088\"}","message":"","errorMessage":""} ⚡️ [log] - errorObj {"name":"","email":"test@email.com","contact":"+918800880088"} /Users/runner/work/razorpay-pod/razorpay-pod/RazorpayIOS/CheckoutOtpelf/Classes/RazorpayCheckoutVC.swift deinitialized 2023-02-07 19:23:50.726695+0530 App[471:30116] Could not signal service com.apple.WebKit.WebContent: 113: Could not find specified service