Re: [w3c/payment-method-basic-card] add: User changes payment method section (#53)

marcoscaceres commented on this pull request.



> +          apply instead (without the need to run these steps).
+        </p>
+        <ol>
+          <li>From the <a>supported cards</a> presented to the end user, let
+          <var>card</var> be the <a>card</a> the user selected.
+          </li>
+          <li>Let <var>methodDetails</var> be a newly created
+          <a>BasicCardChangeDetails</a> dictionary.
+          </li>
+          <li>Set <var>methodDetails</var>["<a>type</a>"] to the
+          <a>BasicCardType</a> that represents <var>card</var>'s <a>type</a>.
+          </li>
+          <li>Run the payment request's <a data-cite=
+          "!payment-request#dfn-payment-method-changed-algorithm">payment
+          method changed algorithm</a> with <var>methodDetails</var> and
+          "basic-card".

Yeah, I was deriving the "method name" in a hand-wavy way in the Payment Request spec. I agree this explicit way is better. 

-- 
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/53#discussion_r188500488

Received on Wednesday, 16 May 2018 04:30:16 UTC