ng-google-pay-webview
v0.0.1
Published
Capacitor plugin that enables Google Pay Web support in Angular apps by fixing iOS WKWebView and Android WebView limitations.
Readme
ng-google-pay-webview
A Capacitor plugin that enables Google Pay Web inside Capacitor WebView on iOS and Android.
This plugin fixes missing WebView capabilities required by Google Pay when using web-based integrations such as:
@google-pay/button-angular- Google Pay Web API (
PaymentRequest,isReadyToPay())
Features
Android
- Enables
PaymentRequestin Android WebView usingandroidx.webkit - Adds required
<queries>intents for Google Pay - Works with Capacitor WebView
iOS
- Appends
GOOGLE_PAY_SUPPORTEDto WKWebView user agent (required forisReadyToPay()in WKWebView) - Supports Google Pay popup flows (
window.open,target="_blank") usingWKUIDelegate - Optional bottom-sheet style popup UI (native)
Installation
npm install ng-google-pay-webview
npx cap sync