Re: [w3c/payment-method-basic-card] WIP: Last wins (#71)

marcoscaceres commented on this pull request.



> +              supportedMethods: "https://example.com/bobpay",
+            },
+          ];
+
+          // See above for which methodData gets picked.
+          await new PaymentRequest(methodData, details, options).show();
+          </pre>
+        </div>
+        <ol class="algorithm">
+          <li>For each <a data-cite="infra#pair">pair</a> (<a>DOMString</a>
+          <var>id</var> / string <var>data</var>) of
+          <var>request</var>.<a data-cite=
+          "payment-request/#dfn-serializedmethoddata">[[\serializedMethodData]]</a>
+          in reverse order:
+            <ol>
+              <li>If <var>id</var> is not "<a>basic-card</a>", continue.

Note to self: deal with null case. 

```
            // ✅ This second one gets used!
            {
              supportedMethods: "basic-card",
              data: {
                supportedNetworks: ["visa"],
              },
            },
            // null case gets ignored. 
            {
              supportedMethods: "basic-card",
            },
```

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/payment-method-basic-card/pull/71#pullrequestreview-216158831

Received on Tuesday, 19 March 2019 13:40:43 UTC