iOS Question Paypal webview odd behaviour

Andrew (Digitwell)

Well-Known Member
Licensed User
Longtime User
Hi,
I'm using Paypal through a webview, using a modification of the code found here
https://developer.paypal.com/demo/checkout/#/pattern/buynow

It is mostly working but I have some odd behavior. It work this way with both webview and WKWebview

1. on an iphone 5s in landscape mode, the view is too large. Works fine on an iPad
2. when you try enter the email address / password, the cursor jumps up the screen out of the textfield. Rotating the screen several times sometimes solves the problem.

Has anyone experienced these issues when using Paypal through a webview? What did you do to resolve them?

Cheers

Andrew
 

Attachments

  • IMG_0121.PNG
    IMG_0121.PNG
    63.8 KB · Views: 358

Andrew (Digitwell)

Well-Known Member
Licensed User
Longtime User
I can't use SafariController as I need to know when the page is redirected to the complete or cancelled page.

I partially solved the problem by using a combination of ScaletoFit=True and setting the initial-scale Viewport option in the HTML to 0.8.

Thanks for the suggestion.
 
Upvote 0
Top