{"action":"created","comment":{"url":"https://api.github.com/repos/w3c/payment-method-basic-card/pulls/comments/188122445","pull_request_review_id":120037971,"id":188122445,"diff_hunk":"@@ -403,6 +403,64 @@ <h3>\n           </li>\n         </ol>\n       </section>\n+      <section>\n+        <h3>\n+          Steps for when a user changes payment method\n+        </h3>\n+        <p class=\"note\" data-lt=\"BasicCardRequest\">\n+          When the end user explicitly switches from one card to another, these\n+          steps cause an event to fire in the <cite data-cite=\n+          \"!payment-request\">Payment Request API</cite>. The algorithm\n+          presupposes that the user agent is only presenting <a>supported\n+          cards</a> to the end user, by having filtered out unsupported cards\n+          based on the initiating payment request's <a>BasicCardRequest</a>'s\n+          <a>supportedNetworks</a> and <a>supportedTypes</a> values.\n+        </p>\n+        <p>\n+          The <dfn>steps for when a user changes payment method</dfn> are as\n+          follows. To mitigate fingerprinting concerns, the user agent MUST NOT\n+          run these steps unless the a user explicitly switches to a different\n+          card by performing some user action (e.g., by selecting a different\n+          card explicitly from a list of cards). For cards that are preselected\n+          by default by the user agent, any matching <code><a data-cite=\n+          \"payment-request#dom-paymentdetailsmodifier\">PaymentDetailsModifier</a></code>","path":"index.html","position":24,"original_position":24,"commit_id":"8ead9dfa2aaafef9f0c6ef322347caa2eb634685","original_commit_id":"8ead9dfa2aaafef9f0c6ef322347caa2eb634685","user":{"login":"domenic","id":617481,"avatar_url":"https://avatars0.githubusercontent.com/u/617481?v=4","gravatar_id":"","url":"https://api.github.com/users/domenic","html_url":"https://github.com/domenic","followers_url":"https://api.github.com/users/domenic/followers","following_url":"https://api.github.com/users/domenic/following{/other_user}","gists_url":"https://api.github.com/users/domenic/gists{/gist_id}","starred_url":"https://api.github.com/users/domenic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/domenic/subscriptions","organizations_url":"https://api.github.com/users/domenic/orgs","repos_url":"https://api.github.com/users/domenic/repos","events_url":"https://api.github.com/users/domenic/events{/privacy}","received_events_url":"https://api.github.com/users/domenic/received_events","type":"User","site_admin":false},"body":"Missing \"s\" after PaymentDetailsModifier?","created_at":"2018-05-14T22:54:58Z","updated_at":"2018-05-14T22:57:15Z","html_url":"https://github.com/w3c/payment-method-basic-card/pull/53#discussion_r188122445","pull_request_url":"https://api.github.com/repos/w3c/payment-method-basic-card/pulls/53","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/w3c/payment-method-basic-card/pulls/comments/188122445"},"html":{"href":"https://github.com/w3c/payment-method-basic-card/pull/53#discussion_r188122445"},"pull_request":{"href":"https://api.github.com/repos/w3c/payment-method-basic-card/pulls/53"}}},"pull_request":{"url":"https://api.github.com/repos/w3c/payment-method-basic-card/pulls/53","id":184883386,"html_url":"https://github.com/w3c/payment-method-basic-card/pull/53","diff_url":"https://github.com/w3c/payment-method-basic-card/pull/53.diff","patch_url":"https://github.com/w3c/payment-method-basic-card/pull/53.patch","issue_url":"https://api.github.com/repos/w3c/payment-method-basic-card/issues/53","number":53,"state":"open","locked":false,"title":"add: User changes payment method section","user":{"login":"marcoscaceres","id":870154,"avatar_url":"https://avatars1.githubusercontent.com/u/870154?v=4","gravatar_id":"","url":"https://api.github.com/users/marcoscaceres","html_url":"https://github.com/marcoscaceres","followers_url":"https://api.github.com/users/marcoscaceres/followers","following_url":"https://api.github.com/users/marcoscaceres/following{/other_user}","gists_url":"https://api.github.com/users/marcoscaceres/gists{/gist_id}","starred_url":"https://api.github.com/users/marcoscaceres/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcoscaceres/subscriptions","organizations_url":"https://api.github.com/users/marcoscaceres/orgs","repos_url":"https://api.github.com/users/marcoscaceres/repos","events_url":"https://api.github.com/users/marcoscaceres/events{/privacy}","received_events_url":"https://api.github.com/users/marcoscaceres/received_events","type":"User","site_admin":false},"body":"* defines \"user changes payment method\" hook\n * Adds BasicCardChangeDetails dictionary\n\n- [ ] Web platform tests\n\n\n<!--\n    This comment and the below content is programatically generated.\n    You may add a comma-separated list of anchors you'd like a\n    direct link to below (e.g. #idl-serializers, #idl-sequence):\n\n    Don't remove this comment or modify anything below this line.\n    If you don't want a preview generated for this pull request,\n    just replace the whole of this comment's content by \"no preview\"\n    and remove what's below.\n-->\n***\n<a href=\"https://pr-preview.s3.amazonaws.com/w3c/payment-method-basic-card/pull/53.html\" title=\"Last updated on May 10, 2018, 4:27 AM GMT (8ead9df)\">Preview</a> | <a href=\"https://pr-preview.s3.amazonaws.com/w3c/payment-method-basic-card/53/ae877e9...8ead9df.html\" title=\"Last updated on May 10, 2018, 4:27 AM GMT (8ead9df)\">Diff</a>","created_at":"2018-04-30T05:50:54Z","updated_at":"2018-05-14T22:57:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cc36f5eb0cc94b885a731d45ac208c7464081ffe","assignee":null,"assignees":[],"requested_reviewers":[{"login":"ianbjacobs","id":2948484,"avatar_url":"https://avatars3.githubusercontent.com/u/2948484?v=4","gravatar_id":"","url":"https://api.github.com/users/ianbjacobs","html_url":"https://github.com/ianbjacobs","followers_url":"https://api.github.com/users/ianbjacobs/followers","following_url":"https://api.github.com/users/ianbjacobs/following{/other_user}","gists_url":"https://api.github.com/users/ianbjacobs/gists{/gist_id}","starred_url":"https://api.github.com/users/ianbjacobs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ianbjacobs/subscriptions","organizations_url":"https://api.github.com/users/ianbjacobs/orgs","repos_url":"https://api.github.com/users/ianbjacobs/repos","events_url":"https://api.github.com/users/ianbjacobs/events{/privacy}","received_events_url":"https://api.github.com/users/ianbjacobs/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[{"id":928427283,"url":"https://api.github.com/repos/w3c/payment-method-basic-card/labels/DO%20NOT%20MERGE","name":"DO NOT MERGE","color":"b60205","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/w3c/payment-method-basic-card/pulls/53/commits","review_comments_url":"https://api.github.com/repos/w3c/payment-method-basic-card/pulls/53/comments","review_comment_url":"https://api.github.com/repos/w3c/payment-method-basic-card/pulls/comments{/number}","comments_url":"https://api.github.com/repos/w3c/payment-method-basic-card/issues/53/comments","statuses_url":"https://api.github.com/repos/w3c/payment-method-basic-card/statuses/8ead9dfa2aaafef9f0c6ef322347caa2eb634685","head":{"label":"w3c:change-payment-method","ref":"change-payment-method","sha":"8ead9dfa2aaafef9f0c6ef322347caa2eb634685","user":{"login":"w3c","id":379216,"avatar_url":"https://avatars2.githubusercontent.com/u/379216?v=4","gravatar_id":"","url":"https://api.github.com/users/w3c","html_url":"https://github.com/w3c","followers_url":"https://api.github.com/users/w3c/followers","following_url":"https://api.github.com/users/w3c/following{/other_user}","gists_url":"https://api.github.com/users/w3c/gists{/gist_id}","starred_url":"https://api.github.com/users/w3c/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/w3c/subscriptions","organizations_url":"https://api.github.com/users/w3c/orgs","repos_url":"https://api.github.com/users/w3c/repos","events_url":"https://api.github.com/users/w3c/events{/privacy}","received_events_url":"https://api.github.com/users/w3c/received_events","type":"Organization","site_admin":false},"repo":{"id":59560137,"name":"payment-method-basic-card","full_name":"w3c/payment-method-basic-card","owner":{"login":"w3c","id":379216,"avatar_url":"https://avatars2.githubusercontent.com/u/379216?v=4","gravatar_id":"","url":"https://api.github.com/users/w3c","html_url":"https://github.com/w3c","followers_url":"https://api.github.com/users/w3c/followers","following_url":"https://api.github.com/users/w3c/following{/other_user}","gists_url":"https://api.github.com/users/w3c/gists{/gist_id}","starred_url":"https://api.github.com/users/w3c/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/w3c/subscriptions","organizations_url":"https://api.github.com/users/w3c/orgs","repos_url":"https://api.github.com/users/w3c/repos","events_url":"https://api.github.com/users/w3c/events{/privacy}","received_events_url":"https://api.github.com/users/w3c/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/w3c/payment-method-basic-card","description":"W3C Web Payments - Card Payment Method specification","fork":false,"url":"https://api.github.com/repos/w3c/payment-method-basic-card","forks_url":"https://api.github.com/repos/w3c/payment-method-basic-card/forks","keys_url":"https://api.github.com/repos/w3c/payment-method-basic-card/keys{/key_id}","collaborators_url":"https://api.github.com/repos/w3c/payment-method-basic-card/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/w3c/payment-method-basic-card/teams","hooks_url":"https://api.github.com/repos/w3c/payment-method-basic-card/hooks","issue_events_url":"https://api.github.com/repos/w3c/payment-method-basic-card/issues/events{/number}","events_url":"https://api.github.com/repos/w3c/payment-method-basic-card/events","assignees_url":"https://api.github.com/repos/w3c/payment-method-basic-card/assignees{/user}","branches_url":"https://api.github.com/repos/w3c/payment-method-basic-card/branches{/branch}","tags_url":"https://api.github.com/repos/w3c/payment-method-basic-card/tags","blobs_url":"https://api.github.com/repos/w3c/payment-method-basic-card/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/w3c/payment-method-basic-card/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/w3c/payment-method-basic-card/git/refs{/sha}","trees_url":"https://api.github.com/repos/w3c/payment-method-basic-card/git/trees{/sha}","statuses_url":"https://api.github.com/repos/w3c/payment-method-basic-card/statuses/{sha}","languages_url":"https://api.github.com/repos/w3c/payment-method-basic-card/languages","stargazers_url":"https://api.github.com/repos/w3c/payment-method-basic-card/stargazers","contributors_url":"https://api.github.com/repos/w3c/payment-method-basic-card/contributors","subscribers_url":"https://api.github.com/repos/w3c/payment-method-basic-card/subscribers","subscription_url":"https://api.github.com/repos/w3c/payment-method-basic-card/subscription","commits_url":"https://api.github.com/repos/w3c/payment-method-basic-card/commits{/sha}","git_commits_url":"https://api.github.com/repos/w3c/payment-method-basic-card/git/commits{/sha}","comments_url":"https://api.github.com/repos/w3c/payment-method-basic-card/comments{/number}","issue_comment_url":"https://api.github.com/repos/w3c/payment-method-basic-card/issues/comments{/number}","contents_url":"https://api.github.com/repos/w3c/payment-method-basic-card/contents/{+path}","compare_url":"https://api.github.com/repos/w3c/payment-method-basic-card/compare/{base}...{head}","merges_url":"https://api.github.com/repos/w3c/payment-method-basic-card/merges","archive_url":"https://api.github.com/repos/w3c/payment-method-basic-card/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/w3c/payment-method-basic-card/downloads","issues_url":"https://api.github.com/repos/w3c/payment-method-basic-card/issues{/number}","pulls_url":"https://api.github.com/repos/w3c/payment-method-basic-card/pulls{/number}","milestones_url":"https://api.github.com/repos/w3c/payment-method-basic-card/milestones{/number}","notifications_url":"https://api.github.com/repos/w3c/payment-method-basic-card/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/w3c/payment-method-basic-card/labels{/name}","releases_url":"https://api.github.com/repos/w3c/payment-method-basic-card/releases{/id}","deployments_url":"https://api.github.com/repos/w3c/payment-method-basic-card/deployments","created_at":"2016-05-24T09:37:27Z","updated_at":"2018-05-14T11:18:24Z","pushed_at":"2018-05-10T06:18:45Z","git_url":"git://github.com/w3c/payment-method-basic-card.git","ssh_url":"git@github.com:w3c/payment-method-basic-card.git","clone_url":"https://github.com/w3c/payment-method-basic-card.git","svn_url":"https://github.com/w3c/payment-method-basic-card","homepage":"https://w3c.github.io/payment-method-basic-card/","size":81,"stargazers_count":12,"watchers_count":12,"language":"HTML","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":15,"mirror_url":null,"archived":false,"open_issues_count":9,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":15,"open_issues":9,"watchers":12,"default_branch":"gh-pages"}},"base":{"label":"w3c:gh-pages","ref":"gh-pages","sha":"ae877e988671ab5be6d634403a93d6ab10b7d1a5","user":{"login":"w3c","id":379216,"avatar_url":"https://avatars2.githubusercontent.com/u/379216?v=4","gravatar_id":"","url":"https://api.github.com/users/w3c","html_url":"https://github.com/w3c","followers_url":"https://api.github.com/users/w3c/followers","following_url":"https://api.github.com/users/w3c/following{/other_user}","gists_url":"https://api.github.com/users/w3c/gists{/gist_id}","starred_url":"https://api.github.com/users/w3c/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/w3c/subscriptions","organizations_url":"https://api.github.com/users/w3c/orgs","repos_url":"https://api.github.com/users/w3c/repos","events_url":"https://api.github.com/users/w3c/events{/privacy}","received_events_url":"https://api.github.com/users/w3c/received_events","type":"Organization","site_admin":false},"repo":{"id":59560137,"name":"payment-method-basic-card","full_name":"w3c/payment-method-basic-card","owner":{"login":"w3c","id":379216,"avatar_url":"https://avatars2.githubusercontent.com/u/379216?v=4","gravatar_id":"","url":"https://api.github.com/users/w3c","html_url":"https://github.com/w3c","followers_url":"https://api.github.com/users/w3c/followers","following_url":"https://api.github.com/users/w3c/following{/other_user}","gists_url":"https://api.github.com/users/w3c/gists{/gist_id}","starred_url":"https://api.github.com/users/w3c/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/w3c/subscriptions","organizations_url":"https://api.github.com/users/w3c/orgs","repos_url":"https://api.github.com/users/w3c/repos","events_url":"https://api.github.com/users/w3c/events{/privacy}","received_events_url":"https://api.github.com/users/w3c/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/w3c/payment-method-basic-card","description":"W3C Web Payments - Card Payment Method specification","fork":false,"url":"https://api.github.com/repos/w3c/payment-method-basic-card","forks_url":"https://api.github.com/repos/w3c/payment-method-basic-card/forks","keys_url":"https://api.github.com/repos/w3c/payment-method-basic-card/keys{/key_id}","collaborators_url":"https://api.github.com/repos/w3c/payment-method-basic-card/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/w3c/payment-method-basic-card/teams","hooks_url":"https://api.github.com/repos/w3c/payment-method-basic-card/hooks","issue_events_url":"https://api.github.com/repos/w3c/payment-method-basic-card/issues/events{/number}","events_url":"https://api.github.com/repos/w3c/payment-method-basic-card/events","assignees_url":"https://api.github.com/repos/w3c/payment-method-basic-card/assignees{/user}","branches_url":"https://api.github.com/repos/w3c/payment-method-basic-card/branches{/branch}","tags_url":"https://api.github.com/repos/w3c/payment-method-basic-card/tags","blobs_url":"https://api.github.com/repos/w3c/payment-method-basic-card/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/w3c/payment-method-basic-card/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/w3c/payment-method-basic-card/git/refs{/sha}","trees_url":"https://api.github.com/repos/w3c/payment-method-basic-card/git/trees{/sha}","statuses_url":"https://api.github.com/repos/w3c/payment-method-basic-card/statuses/{sha}","languages_url":"https://api.github.com/repos/w3c/payment-method-basic-card/languages","stargazers_url":"https://api.github.com/repos/w3c/payment-method-basic-card/stargazers","contributors_url":"https://api.github.com/repos/w3c/payment-method-basic-card/contributors","subscribers_url":"https://api.github.com/repos/w3c/payment-method-basic-card/subscribers","subscription_url":"https://api.github.com/repos/w3c/payment-method-basic-card/subscription","commits_url":"https://api.github.com/repos/w3c/payment-method-basic-card/commits{/sha}","git_commits_url":"https://api.github.com/repos/w3c/payment-method-basic-card/git/commits{/sha}","comments_url":"https://api.github.com/repos/w3c/payment-method-basic-card/comments{/number}","issue_comment_url":"https://api.github.com/repos/w3c/payment-method-basic-card/issues/comments{/number}","contents_url":"https://api.github.com/repos/w3c/payment-method-basic-card/contents/{+path}","compare_url":"https://api.github.com/repos/w3c/payment-method-basic-card/compare/{base}...{head}","merges_url":"https://api.github.com/repos/w3c/payment-method-basic-card/merges","archive_url":"https://api.github.com/repos/w3c/payment-method-basic-card/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/w3c/payment-method-basic-card/downloads","issues_url":"https://api.github.com/repos/w3c/payment-method-basic-card/issues{/number}","pulls_url":"https://api.github.com/repos/w3c/payment-method-basic-card/pulls{/number}","milestones_url":"https://api.github.com/repos/w3c/payment-method-basic-card/milestones{/number}","notifications_url":"https://api.github.com/repos/w3c/payment-method-basic-card/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/w3c/payment-method-basic-card/labels{/name}","releases_url":"https://api.github.com/repos/w3c/payment-method-basic-card/releases{/id}","deployments_url":"https://api.github.com/repos/w3c/payment-method-basic-card/deployments","created_at":"2016-05-24T09:37:27Z","updated_at":"2018-05-14T11:18:24Z","pushed_at":"2018-05-10T06:18:45Z","git_url":"git://github.com/w3c/payment-method-basic-card.git","ssh_url":"git@github.com:w3c/payment-method-basic-card.git","clone_url":"https://github.com/w3c/payment-method-basic-card.git","svn_url":"https://github.com/w3c/payment-method-basic-card","homepage":"https://w3c.github.io/payment-method-basic-card/","size":81,"stargazers_count":12,"watchers_count":12,"language":"HTML","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":15,"mirror_url":null,"archived":false,"open_issues_count":9,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":15,"open_issues":9,"watchers":12,"default_branch":"gh-pages"}},"_links":{"self":{"href":"https://api.github.com/repos/w3c/payment-method-basic-card/pulls/53"},"html":{"href":"https://github.com/w3c/payment-method-basic-card/pull/53"},"issue":{"href":"https://api.github.com/repos/w3c/payment-method-basic-card/issues/53"},"comments":{"href":"https://api.github.com/repos/w3c/payment-method-basic-card/issues/53/comments"},"review_comments":{"href":"https://api.github.com/repos/w3c/payment-method-basic-card/pulls/53/comments"},"review_comment":{"href":"https://api.github.com/repos/w3c/payment-method-basic-card/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/w3c/payment-method-basic-card/pulls/53/commits"},"statuses":{"href":"https://api.github.com/repos/w3c/payment-method-basic-card/statuses/8ead9dfa2aaafef9f0c6ef322347caa2eb634685"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"domenic"}}