Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Paypal Checkout window closes immediately in WKWebView(iOS)

I am using Paypal Server Integration using an HTML page created at my end in iOS (Swift) and loading contents of this html file in WKWebView. It was wroking fine but suddenly the Paypal buttons starts working strangely as I click paypal button it opens checkout page and suddenly it closes the checkout popup automatically.

CheckOutPage.html

WKWebView.swift

We are using same checkout html code for website and it is working fine there. But the checkout is not working in iOS app.

Need help with this .....

HTML Page loaded

enter image description here

like image 613
Taslim Ansari Avatar asked Apr 29 '21 09:04

Taslim Ansari


Video Answer


1 Answers

Do not use a webview, only a Safari View Controller that shows an address bar is supported.

like image 97
Preston PHX Avatar answered Nov 22 '22 04:11

Preston PHX