Android Question payment gateway

elitevenkat

Active Member
Licensed User
Longtime User
i am trying to open a payment gateway. i am using a webview control.
B4X:
 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
Upvote 0

elitevenkat

Active Member
Licensed User
Longtime User
how is a Httpjob related to Webview?
the webview is used to load the html content returned by
B4X:
    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

elitevenkat

Active Member
Licensed User
Longtime User
I'm sorry but I don't understand what you are doing. How is the desktop chrome browser related to the Android app?
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

elitevenkat

Active Member
Licensed User
Longtime User
i can write but b4a will not understand. the 2nd option is worth and i have already identified a gentleman. Thanks Don
 
Upvote 0
Top