-
Danyao Wang authored
Skip-to-GPay is an experimental flow that skips the payment sheet for {basic-card, GPay} hybrid requests. Today requests for shipping and contact information is fulfilled using autofill data, this requires the payment sheet to be shown to the user to confirm the information. Since the Payment Handler API does not yet support a general mechanism for delegating shipping and contact information to payment handlers, this patch is part of a bridge solution customized for GPay. With this patch, the renderer process will detect {basic-card, GPay} hybrid requests that are eligible for the skip-to-GPay flow. Then it creates a copy of the merchant-provided GPay-specific-data, and sets additional parameters to request shipping and contact information from GPay based on the merchant-provided PaymentOptions. The copy is passed to the browser process to make a final decision (based on a Feature flag) whether to invoke the skip-to-GPay flow. The browser process changes will be landed in a separate patch. Design Doc: https://docs.google.com/document/d/1rCA4tk1xS3nwiRqmAk1eCAh64K55wHOE1JWYNTqm9LQ/edit# Bug: 877284 Change-Id: I7822fe0157fa6ee77e48035a2c1c0fae41168c8d Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1769853 Commit-Queue: Danyao Wang <danyao@chromium.org> Reviewed-by:
Daniel Cheng <dcheng@chromium.org> Reviewed-by:
Rouslan Solomakhin <rouslan@chromium.org> Cr-Commit-Position: refs/heads/master@{#692072}
ef61a21f