wordpress-mobile / WordPress-iOS

WordPress for iOS - Official repository
http://ios.wordpress.org/
GNU General Public License v2.0
3.66k stars 1.11k forks source link

Migrate WebKitViewController to SFSafariViewController #13553

Open diegoreymendez opened 4 years ago

diegoreymendez commented 4 years ago

Apple Pay is only supported in SFSafariViewController (and not in WKWebView). We need to migrate WebKitViewController to use it if we want Apple Pay to work there.

Reference: pbArwn-an-p2#comment-145

Rationale

When trying to upgrade a site's plan and using Apple Pay to check out, we can see a message that reads "This payment type is not supported".

This was reported by @elibud.

Steps to reproduce the behavior

  1. Go to "My Sites"
  2. Pick a site that doesn't have a plan.
  3. Tap on "Themes"
  4. Tap on "Customize"
  5. Tap "CSS"
  6. Tap "Upgrade Now".
  7. Pay for the Upgrade using Apple Pay.

You'll see a message like the one in the image shown above that reads "This payment type is not supported".

Tested on iPhone 11 Max Pro, iOS 13.3.1, WPiOS 14.2
diegoreymendez commented 4 years ago

Before diving into this please consider the implications mentioned in p77Llu-4p3-p2#comment-3050 and p9c7Jx-1n-p2