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

Side by Side Diff: third_party/WebKit/public/platform/modules/payments/payment_request.mojom

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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 [JavaPackage="org.chromium.mojom.payments"] 5 [JavaPackage="org.chromium.mojom.payments"]
6 module blink.mojom; 6 module blink.mojom;
7 7
8 // The shipping address that the browser process provides to the renderer 8 // The shipping address that the browser process provides to the renderer
9 // process. Built either by the browser or a payment app. 9 // process. Built either by the browser or a payment app.
10 struct PaymentAddress { 10 struct PaymentAddress {
(...skipping 27 matching lines...) Expand all
38 // be successfully parsed into base::JSONParser. Renderer parses this string 38 // be successfully parsed into base::JSONParser. Renderer parses this string
39 // via v8::JSON::Parse() and hands off the result to the merchant website. 39 // via v8::JSON::Parse() and hands off the result to the merchant website.
40 // There's no one format for this object, so richer types cannot be used. A 40 // There's no one format for this object, so richer types cannot be used. A
41 // simple example: 41 // simple example:
42 // 42 //
43 // {"nameOnCard": "Jon Doe", "pan": "4111 1111 1111 1111"} 43 // {"nameOnCard": "Jon Doe", "pan": "4111 1111 1111 1111"}
44 string stringified_details; 44 string stringified_details;
45 45
46 PaymentAddress? shipping_address; 46 PaymentAddress? shipping_address;
47 string? shipping_option_id; 47 string? shipping_option_id;
48 string? payer_email;
49 string? payer_phone;
48 }; 50 };
49 51
50 interface PaymentRequestClient { 52 interface PaymentRequestClient {
51 OnShippingAddressChange(PaymentAddress address); 53 OnShippingAddressChange(PaymentAddress address);
52 OnShippingOptionChange(string shipping_option_id); 54 OnShippingOptionChange(string shipping_option_id);
53 OnPaymentResponse(PaymentResponse response); 55 OnPaymentResponse(PaymentResponse response);
54 OnError(); 56 OnError();
55 OnComplete(); 57 OnComplete();
56 }; 58 };
57 59
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 // object to the payment app, for example Android Pay. There's no one 102 // object to the payment app, for example Android Pay. There's no one
101 // format for this object, so richer types cannot be used. A simple 103 // format for this object, so richer types cannot be used. A simple
102 // example: 104 // example:
103 // 105 //
104 // {"https://android.com/pay": {"gateway": "stripe"}} 106 // {"https://android.com/pay": {"gateway": "stripe"}}
105 string stringified_data); 107 string stringified_data);
106 UpdateWith(PaymentDetails details); 108 UpdateWith(PaymentDetails details);
107 Abort(); 109 Abort();
108 Complete(bool success); 110 Complete(bool success);
109 }; 111 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698