paytm / Paytm_iOS_All_in_One_SDK

https://developer.paytm.com/docs/all-in-one-sdk/#ios
6 stars 5 forks source link

-canOpenURL: failed for URL: #11

Open gokulkrizh opened 4 years ago

gokulkrizh commented 4 years ago

image

Followed the documentation from this page. Doesn't open redirection flow (webview) when Paytm app not installed in the latest update. It opens Paytm staging app if installed via test flight but can't able to login showing try again error.

For Android, everything seems works fine but not in IOS. Excepting the response from your team ASAP.

Xcode version: 12 GM

swifty01 commented 4 years ago

2020-09-26 17:50:40.760833+0530 AllInOneSDK_SampleApp[1041:28346] -canOpenURL: failed for URL: "paytm://merchantpayment?txnToken=cf9aeb02a1f84128936e73996f7cedbd1601122840320&orderId=cmJq4&mid= shXXXXXXXXXXXXXXXXX&amount=100.00&redirectionUrl=https://securegw.paytm.in/theia/paytmCallback?ORDER_ID=cmJq4" - error: "The operation couldn’t be completed. (OSStatus error -10814.)"

https://securegw.paytm.in/theia/api/v1/showPaymentPage?mid= shXXXXXXXXXXXXXXXXX&orderId=cmJq4 2020-09-26 17:50:43.370678+0530 AllInOneSDK_SampleApp[1041:28495] [assertion] Error acquiring assertion: <NSError: 0x600003336ca0; domain: RBSAssertionErrorDomain; code: 2; reason: "Required client entitlement is missing"> { userInfo = { RBSAssertionAttribute = <RBSLegacyAttribute: 0x7fe436e1a1e0; requestedReason: FinishTaskUnbounded; reason: FinishTaskUnbounded; flags: PreventTaskSuspend>; } }

2020-09-26 17:50:43.376606+0530 AllInOneSDK_SampleApp[1041:28495] [ProcessSuspension] 0x116bfdb40 - ProcessAssertion() PID 1041 Unable to acquire assertion for process with PID 1043 2020-09-26 17:50:43.376762+0530 AllInOneSDK_SampleApp[1041:28346] [ProcessSuspension] 0x116bfdb40 - ProcessAssertion::processAssertionWasInvalidated() 🔶 Finish - https://securegw.paytm.in/theia/api/v1/%7Burl%7D

I am following the lattest SDK and getting the error and it shows "OOPS something went wrong " in Simulator . I am using Production credentials. I am using Xcode 11.1 with swift5.1.

Please provide a solution for this as soon as possible.

swifty01 commented 4 years ago

image

Followed the documentation from this page. Doesn't open redirection flow (webview) when Paytm app not installed in the latest update. It opens Paytm staging app if installed via test flight but can't able to login showing try again error.

For Android, everything seems works fine but not in IOS. Excepting the response from your team ASAP.

Xcode version: 12 GM

@gokulkrizh Hie, Do you find any solution for your issue. I am also getting the same error.

gokulkrizh commented 4 years ago

@swifty01 not yet. Can you give a try in a physical device in a production environment and before that install Paytm from the app store? The reason I'm saying, for me it opening the Paytm staging app but I couldn't able to login showing error in the test environment. Maybe it'll work in the production environment (Totally a guess). Also, it should open the webpage when Paytm app not installed but it doesn't.

swifty01 commented 4 years ago

@swifty01 not yet. Can you give a try in a physical device in a production environment and before that install Paytm from the app store? The reason I'm saying, for me it opening the Paytm staging app but I couldn't able to login showing error in the test environment. Maybe it'll work in the production environment (Totally a guess). Also, it should open the webpage when Paytm app not installed but it doesn't.

I am getting the above mentioned errors and getting "Something went wrong" in Simulator using Production credentials.

gokulkrizh commented 4 years ago

@swifty01 hey, I didn't try using Production credentials in the simulator. I have tried only on a physical device but didn't get this error using test credentials.

I am getting the above mentioned errors and getting "Something went wrong" in Simulator using Production credentials.

swifty01 commented 4 years ago

It worked with lattest SDK and by using proper sandbox MID. I think the issue was in my Sandbox MID after generating it again with merchant account. It worked !! But with Production MID it shows Oops Something went Wrong in simulator. Any idea for this.