react-native-webview
react-native-webview copied to clipboard
feat(android) add support for enabling the Payment Request API (#2278)
Summary: This PR enables the Payment Request API for the WebView. This is needed in order for Google Pay to work:
https://developers.google.com/pay/api/android/guides/recipes/using-android-webview
[!NOTE]
Theandroidx.webkit:webkitdependency is currently only available in1.14.0-beta01. So this PR might has to wait until a stable release.
Fixes #2278
Testing Instructions: Before testing, check the User device requirements and Early testing sections of the above guide.
- Run the example app on an Android device.
- Tap the "GOOGLEPAY" button
- Tap the "Buy" button. Observe that the "native" Google Pay bottom sheet will come up.
- Tap the "Continue" button to complete the transaction
Video Demonstration:
https://github.com/user-attachments/assets/74f5872e-9654-4540-8c06-804f6d4b2e2c