| 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;
|
|
|