Taslim Ansari
Taslim Ansari

Reputation: 91

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

Upvotes: 6

Views: 841

Answers (1)

Preston PHX
Preston PHX

Reputation: 30432

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

Upvotes: 1

Related Questions