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

Unified Diff: components/payments/payment_request.mojom

Issue 2501593003: Implement the new basic card specification. (Closed)
Patch Set: Rebase 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 9d95c51a60dcee6f551ccbcab524d8aee2e86216..02af93866853627fa7df2d501c43f0c2b673dfb8 100644
--- a/components/payments/payment_request.mojom
+++ b/components/payments/payment_request.mojom
@@ -157,6 +157,22 @@ struct AndroidPayTokenizationParameter {
string? value;
};
+enum BasicCardNetwork {
+ AMEX,
+ DINERS,
+ DISCOVER,
+ JCB,
+ MASTERCARD,
+ UNIONPAY,
+ VISA
+};
+
+enum BasicCardType {
+ CREDIT,
+ DEBIT,
+ PREPAID
+};
+
struct PaymentMethodData {
array<string> supported_methods;
@@ -179,6 +195,10 @@ struct PaymentMethodData {
array<AndroidPayCardNetwork> allowed_card_networks;
AndroidPayTokenization tokenization_type;
array<AndroidPayTokenizationParameter> parameters;
+
+ // Basic card specific method data is parsed in the renderer.
+ array<BasicCardNetwork> supported_networks;
+ array<BasicCardType> supported_types;
};
enum PaymentComplete {

Powered by Google App Engine
This is Rietveld 408576698