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

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

Issue 2062583002: Add totalAmount to PaymentResponse. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase #2 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 | « third_party/WebKit/Source/modules/payments/PaymentTestHelper.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/public/platform/modules/payments/payment_request.mojom
diff --git a/third_party/WebKit/public/platform/modules/payments/payment_request.mojom b/third_party/WebKit/public/platform/modules/payments/payment_request.mojom
index ed000f525d146663b1eeeb7dc19de169ad20fc42..dc064f7f19e654d6e2d35b3ebf36df0ab1d23c23 100644
--- a/third_party/WebKit/public/platform/modules/payments/payment_request.mojom
+++ b/third_party/WebKit/public/platform/modules/payments/payment_request.mojom
@@ -32,8 +32,21 @@ struct PaymentAddress {
string phone;
};
+// The currency amount that the renderer provides to the browser process. The
+// browser shows the amount in UI and forwards it on to the payment app, if it
+// requires the amount.
+struct CurrencyAmount {
+ // ISO 4217 currency code. Three upper case ASCII letters.
+ string currency;
+
+ // ISO 20022 CurrencyAnd30Amount. Up to 30 total digits. Up to 10 fraction
+ // digits. Separated by a dot.
+ string value;
+};
+
struct PaymentResponse {
string method_name;
+ CurrencyAmount total_amount;
// Payment method specific JSON string that is built either by the browser or
// a payment app, for example Android Pay. Browser ensures that the string can
@@ -57,18 +70,6 @@ interface PaymentRequestClient {
OnComplete();
};
-// The currency amount that the renderer provides to the browser process. The
-// browser shows the amount in UI and forwards it on to the payment app, if it
-// requires the amount.
-struct CurrencyAmount {
- // ISO 4217 currency code. Three upper case ASCII letters.
- string currency;
-
- // ISO 20022 CurrencyAnd30Amount. Up to 30 total digits. Up to 10 fraction
- // digits. Separated by a dot.
- string value;
-};
-
struct PaymentItem {
string label;
CurrencyAmount amount;
« no previous file with comments | « third_party/WebKit/Source/modules/payments/PaymentTestHelper.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698