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

Side by Side Diff: components/payments/payment_request.mojom

Issue 2373103002: [Web Payments] Common Payments validation (Closed)
Patch Set: Deps and new field Created 4 years, 1 month 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.payments.mojom"] 5 [JavaPackage="org.chromium.payments.mojom"]
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 25 matching lines...) Expand all
36 // requires the amount. 36 // requires the amount.
37 struct PaymentCurrencyAmount { 37 struct PaymentCurrencyAmount {
38 // The most common identifiers are three-letter alphabetic codes as defined 38 // The most common identifiers are three-letter alphabetic codes as defined
39 // by [ISO4217] (for example, "USD" for US Dollars), however any string of at 39 // by [ISO4217] (for example, "USD" for US Dollars), however any string of at
40 // most 2048 characters is considered valid. 40 // most 2048 characters is considered valid.
41 string currency; 41 string currency;
42 42
43 // ISO 20022 CurrencyAnd30Amount. Up to 30 total digits. Up to 10 fraction 43 // ISO 20022 CurrencyAnd30Amount. Up to 30 total digits. Up to 10 fraction
44 // digits. Separated by a dot. 44 // digits. Separated by a dot.
45 string value; 45 string value;
46
please use gerrit instead 2016/10/31 14:31:15 Please add a comment from https://w3c.github.io/br
Kevin Bailey 2016/10/31 20:32:00 Done.
47 string? system;
46 }; 48 };
47 49
48 struct PaymentResponse { 50 struct PaymentResponse {
49 string method_name; 51 string method_name;
50 52
51 // Payment method specific JSON string that is built either by the browser or 53 // Payment method specific JSON string that is built either by the browser or
52 // a payment app, for example Android Pay. Browser ensures that the string can 54 // a payment app, for example Android Pay. Browser ensures that the string can
53 // be successfully parsed into base::JSONParser. Renderer parses this string 55 // be successfully parsed into base::JSONParser. Renderer parses this string
54 // via v8::JSON::Parse() and hands off the result to the merchant website. 56 // via v8::JSON::Parse() and hands off the result to the merchant website.
55 // There's no one format for this object, so richer types cannot be used. A 57 // There's no one format for this object, so richer types cannot be used. A
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 interface PaymentRequest { 146 interface PaymentRequest {
145 Init(PaymentRequestClient client, 147 Init(PaymentRequestClient client,
146 array<PaymentMethodData> methodData, 148 array<PaymentMethodData> methodData,
147 PaymentDetails details, 149 PaymentDetails details,
148 PaymentOptions options); 150 PaymentOptions options);
149 Show(); 151 Show();
150 UpdateWith(PaymentDetails details); 152 UpdateWith(PaymentDetails details);
151 Abort(); 153 Abort();
152 Complete(PaymentComplete result); 154 Complete(PaymentComplete result);
153 }; 155 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698