Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(722)

Unified Diff: third_party/WebKit/Source/modules/payments/PaymentRequest.cpp

Issue 2038423002: Adding support for phone and email. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/payments/PaymentResponse.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/modules/payments/PaymentRequest.cpp
diff --git a/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp b/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp
index b714ad694eba2cfa9da60da2279478a1c7819b21..ab89bc2d690350742bbd6e955ecbf4bce6cb1ea1 100644
--- a/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp
+++ b/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp
@@ -439,6 +439,14 @@ void PaymentRequest::OnPaymentResponse(mojom::blink::PaymentResponsePtr response
m_shippingOption = response->shipping_option_id;
}
+ if (response->payer_email) {
+ m_payerEmail = response->payer_email;
zino 2016/06/06 07:26:50 This should happen if requestPayerEmail is true.
+ }
+
+ if (response->payer_phone) {
+ m_payerPhone = response->payer_phone;
zino 2016/06/06 07:26:50 ditto
+ }
+
m_showResolver->resolve(new PaymentResponse(std::move(response), this));
// Do not close the mojo connection here. The merchant website should call
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/payments/PaymentResponse.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698