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

Unified Diff: components/payments/payment_request.mojom

Issue 2470463002: Add data parameter to payment details modifier. (Closed)
Patch Set: 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 side-by-side diff with in-line comments
Download patch
Index: components/payments/payment_request.mojom
diff --git a/components/payments/payment_request.mojom b/components/payments/payment_request.mojom
index dc9ab3374af80aed7ef648580855df5aa42f40e3..cf27fb491c09988a81e053411c865fecd93dd27f 100644
--- a/components/payments/payment_request.mojom
+++ b/components/payments/payment_request.mojom
@@ -97,6 +97,16 @@ struct PaymentDetailsModifier {
array<string> supported_methods;
PaymentItem? total;
array<PaymentItem> additional_display_items;
+ // A JSON string built by the renderer from a JavaScript object that the
+ // merchant website provides. The renderer uses
+ // blink::JSONObject::toJSONString() to generate this string. The browser
+ // parses the string via JSONObject(JsonSanitizer.sanitize(stringified_data))
+ // and passes a part of the JSON object to the payment app, for example
+ // Android Pay. There's no one format for this object, so richer types cannot
+ // be used. A simple example:
+ //
+ // {"gateway": "stripe"}
+ string stringified_data;
};
struct PaymentDetails {

Powered by Google App Engine
This is Rietveld 408576698