[Web Payment] Query IS_READY_TO_PAY service.
Before this patch, all TWA payment apps on Chrome OS were available for payment, even if they implemented an IS_READY_TO_PAY service that replied "false" to the query (when chrome://flags/#enable-web-payments-experimental-features flag was enabled). This patch queries the IS_READY_TO_PAY service of the TWA payment app on Chrome OS and enables payments only if the service is absent or returns "true". After this patch, the TWA payment app can control at runtime whether it's able to handle payments. Bug: 1061503 Change-Id: Idb267c0bbe2d8bb9173bcfde1b9a25e47a7fc505 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2269744 Commit-Queue: Rouslan Solomakhin <rouslan@chromium.org> Reviewed-by:Danyao Wang <danyao@chromium.org> Reviewed-by:
Liquan (Max) Gu <maxlg@chromium.org> Cr-Commit-Position: refs/heads/master@{#798600}
Showing
Please register or sign in to comment