From 675bb26f26a091f8df808bb679733fbe7f8b3a31 Mon Sep 17 00:00:00 2001 From: Ade Bateman Date: Sun, 18 Sep 2016 11:08:23 -0700 Subject: [PATCH] Describe the payment method request data. --- index.html | 41 +++++++++++++++++++++++++++++++++++++---- 1 file changed, 37 insertions(+), 4 deletions(-) diff --git a/index.html b/index.html index 9a63cb7..a954b2a 100644 --- a/index.html +++ b/index.html @@ -173,12 +173,45 @@

Payment Method Flow

-
+

Payment Method Specific Data for the PaymentRequest constructor

This section describes payment method specific data that is supplied as part of the data - argument to the PaymentRequest constructor.

-

There is no payment method specific data used by the PaymentRequest constructor when processing - Basic Card Payment methods.

+ argument to the PaymentRequest constructor.

+ +
+

BasicCardRequest

+
+        enum BasicCardType { "credit", "debit", "prepaid" };
+
+        dictionary BasicCardRequest {
+          sequence<DOMString> supportedNetworks;
+          sequence<BasicCardType> supportedTypes;
+        };
+      
+ +

+ The BasicCardResponse dictionary contains the following fields: +

+ +
+
supportedNetworks
+
The supportedNetworks field contains a sequence of identifiers for card networks + that the merchant accepts.
+
supportedTypes
+
The supportedTypes field contains a sequence of card types that the merchant + accepts. Implementations will determine how to match the type values credit, + debit, and prepaid.
+
+ +

+ The supportedNetworks and supportedTypes fields are both optional. + If neither is provided then any card may be returned. If only supportedNetworks + is provided then any card type may be returned provided it matches one of the networks. + If only supportedTypes is provided then a card may be returned from any network + provided it matches one of the types. +

+ +