applePayAPIEnabled property

bool? applePayAPIEnabled
getter/setter pair

Set to true to enable Apple Pay API for the WebView at its first page load or on the next page load (using PlatformInAppWebViewController.setOptions). The default value is false.

IMPORTANT NOTE: As written in the official Safari 13 Release Notes, it won't work if any script injection APIs are used (such as PlatformInAppWebViewController.evaluateJavascript or UserScript). So, when this attribute is true, all the methods, options, and events implemented using JavaScript won't be called or won't do anything and the result will always be null.

Methods affected:

Also, on MacOS:

Settings affected:

Events affected:

Also, on MacOS:

Officially Supported Platforms/Implementations:

  • iOS 13.0+
  • MacOS 10.15+

Implementation

bool? applePayAPIEnabled;