elitevenkat Active Member Licensed User Longtime User May 8, 2018 #1 i am trying to open a payment gateway. i am using a webview control. Code: j.PostMultipart("https://secure.zzzzzz.in/_zzzzent",mapjson,Null) and get following error : Failed to load file:///zzzz/op/v1/redirect?_r=0.5466419911248204&paymentId=///: Cross origin requests are only supported for protocol schemes: http, data, chrome, https. in file:/// (Line: 43) i am using android v7 in the phone b4a version is 7.3 chrome ver 66.0.3359.158 any help ?
i am trying to open a payment gateway. i am using a webview control. Code: j.PostMultipart("https://secure.zzzzzz.in/_zzzzent",mapjson,Null) and get following error : Failed to load file:///zzzz/op/v1/redirect?_r=0.5466419911248204&paymentId=///: Cross origin requests are only supported for protocol schemes: http, data, chrome, https. in file:/// (Line: 43) i am using android v7 in the phone b4a version is 7.3 chrome ver 66.0.3359.158 any help ?
DonManfred Expert Licensed User Longtime User May 8, 2018 #2 elitevenkat said: j.PostMultipart Click to expand... how is a Httpjob related to Webview? Upvote 0
elitevenkat Active Member Licensed User Longtime User May 8, 2018 #3 Using webview to show result Upvote 0
elitevenkat Active Member Licensed User Longtime User May 9, 2018 #5 DonManfred said: how is a Httpjob related to Webview? Click to expand... the webview is used to load the html content returned by Code: WebView1.LoadHtml(j.GetString) at that point, the error message is shown. the error message is fixed by making the following changes to chrome shortcut - target "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" -- allow-file-access-from-files however the page keeps on loading indefinitely with out opening the requested page. should i share the returned html code ? Upvote 0
DonManfred said: how is a Httpjob related to Webview? Click to expand... the webview is used to load the html content returned by Code: WebView1.LoadHtml(j.GetString) at that point, the error message is shown. the error message is fixed by making the following changes to chrome shortcut - target "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" -- allow-file-access-from-files however the page keeps on loading indefinitely with out opening the requested page. should i share the returned html code ?
Erel B4X founder Staff member Licensed User Longtime User May 9, 2018 #6 I'm sorry but I don't understand what you are doing. How is the desktop chrome browser related to the Android app? Upvote 0
I'm sorry but I don't understand what you are doing. How is the desktop chrome browser related to the Android app?
elitevenkat Active Member Licensed User Longtime User May 9, 2018 #7 Erel said: I'm sorry but I don't understand what you are doing. How is the desktop chrome browser related to the Android app? Click to expand... i also really don't know. i got the suggestion when i searched the net for solution. Strangely the error disappeared !!!. however the target page is not opening. Upvote 0
Erel said: I'm sorry but I don't understand what you are doing. How is the desktop chrome browser related to the Android app? Click to expand... i also really don't know. i got the suggestion when i searched the net for solution. Strangely the error disappeared !!!. however the target page is not opening.
DonManfred Expert Licensed User Longtime User May 9, 2018 #8 If the Payment-Provider have an SDK. Use the SDK instead of workarounding using a Webview which is most probably the wrong solution. Upvote 0
If the Payment-Provider have an SDK. Use the SDK instead of workarounding using a Webview which is most probably the wrong solution.
elitevenkat Active Member Licensed User Longtime User May 9, 2018 #9 Yes the vendor is providing a sdk. but no wrapper for b4a. Upvote 0
DonManfred Expert Licensed User Longtime User May 9, 2018 #10 Then write one Alternatively you can hire someone to do it for you. Create a Thread in the Job Offer Forum. Upvote 0
Then write one Alternatively you can hire someone to do it for you. Create a Thread in the Job Offer Forum.
elitevenkat Active Member Licensed User Longtime User May 9, 2018 #11 i can write but b4a will not understand. the 2nd option is worth and i have already identified a gentleman. Thanks Don Upvote 0
i can write but b4a will not understand. the 2nd option is worth and i have already identified a gentleman. Thanks Don