react-native-webview icon indicating copy to clipboard operation
react-native-webview copied to clipboard

feat(android) add support for enabling the Payment Request API (#2278)

Open dmengelt opened this issue 7 months ago • 0 comments

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]
The androidx.webkit:webkit dependency is currently only available in 1.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

dmengelt avatar May 02 '25 12:05 dmengelt