A user can pay with Paypal inside our application.
We open the Paypal link inside a WKWebView.
But this is the result after the Paypal log-in.
When I inspect the WKWebView I find these 2 errors in the console:
Refused to load https://www.recaptcha.net/recaptcha/enterprise/... because it does not appear in the frame-ancestors directive of the Content Security Policy.
Failed https://www.recaptcha.net/recaptcha/enterprise/... to load resource: the server responded with a status of 404 ()
I did not find anything on the internet to how to solve this.
Thanks
We open the Paypal link inside a WKWebView.
You cannot do this. From the documentation
Do not use a WebView to display PayPal web pages within your
application
Your application must not use a WebView or similar custom browser
mechanism for display of PayPal web pages. Instead, use an appropriate
PayPal SDK to manage the PayPal experience or launch the PayPal web
page within the system browser or an approved browser-view mechanism
such as Safari View Controller on iOS or Chrome Custom Tabs on
Android.
--
If your own checkout/payment flow is happening in a webview (rather than native) and you need to open a PayPal checkout from there, consider using a popup bridge (iOS or android version) which will convert any web popup to open in an SFVC/CCT
Related
I want a technical help about my website and mobile application communication.
The flow is user will press checkout from the web, and it will redirect to mobile applicaiton on IOS. The application will take the payment and send the response back to Webpage opened in safari.
I have explored some optios like Deep linking and back linking but the issue is In deep linking we can transfer some data to mobile app but we cannot take some response data back on webpage. and the same is with Back linking.
please note that if I open the webpage again using open url method It will open a new tab, but I want to redirect to same page on safari with some response string.
Pleaes note that the platform is IOS, and the communication will be between webbrowser and IOS native Mobile app.
Try checking out the Universal Links documentation. It should support your use case.
When checking out, redirect the user to a URL you control that matches your schema, then iOS will redirect to your app, and when you wish to go back to the browser, simply open a link back to your site.
We developed a website in which users can sign in using their google account. This works fine. A lot of people have shared our app link on Instagram.
The problem is, when users of Instagram click on our website link, the ios webview is used (internal browser in Instagram). This prevents people from signing in to our app and are presented the following error:
What's the solution to this?
I have a web page that I load in my iPhone app that has a form that sends me feedback. In case someone figures out the website url and accesses the page without using an iPhone, I want to ensure they're not a robot, as advised by my system admin.
When I setup the Google Recaptcha and view it in my iPhone app, the captcha renders in a separate Safari window not the app's webview.
I found this question without an answer:
https://groups.google.com/forum/#!searchin/recaptcha/webview/recaptcha/spLNfrT9nCM/t8aAuDzKBwAJ
My website with the form I want to add the Recaptcha to uses PHP.
We have an iOS native app, that allows for online giving for churches through a external web page. The native app opens the browser, and the once the user is done with their online giving on the web page it uses a URL scheme to return back to the native app.
This works great, but isn't ideal because when the user later returns to their web browser they see the remnant of the external web page.
Currently we just do some JavaScript and clean up the page so to speak to avoid duplicate gifts etc. Is there a way we can redirect the page to the users default page, or home page?
Or is there a better way to handle this?
You could handle your online gift in an internal UIWebView, which would give you much more control over this aspect of your application.
I'm trying to achieve following: I have facebook authentication on my web app. I want to return back to PhoneGap application after authentication is done.
The authentication flow works just fine. But returning to app should be done by providing a redirect url to facebook authentication URL. The problem is that I don't know what's the URL.
I've tried custom URL scheme, which works when authentication flow is executed in external Mobile Safari window. But in this case, the authentication is set to the Safari session, not for the Web App.
If external window is not used, but the authentication is done in Web App, the custom URL scheme won't work.
I have a hint this could be done with PhoneGap ChildBrowser plugin. That's the last possible option I want to try
If the only possible solution is ChildBrowser, I haven't found any good tutorial or instructions how this should be done. Any advice on that?
please give solution if any one have better example
Phonegap released a plugin for connecting to facebook: https://github.com/davejohnson/phonegap-plugin-facebook-connect