{"action":"created","comment":{"url":"https://api.github.com/repos/Shopify/js-buy-sdk/pulls/comments/70295554","id":70295554,"diff_hunk":"@@ -0,0 +1,91 @@\n+$(function() {\n+\n+  /* Build new ShopifyBuy client\n+  ============================================================ */\n+  var client = ShopifyBuy.buildClient({\n+    apiKey: 'bf081e860bc9dc1ce0654fdfbc20892d',\n+    myShopifyDomain: 'embeds',\n+    appId: '6'\n+  });\n+\n+  var product;\n+  var cart;\n+\n+  var cartPromise = client.createCart();\n+  var productPromise = client.fetchProduct('3614436099');\n+  RSVP.all([cartPromise, productPromise]).then(function (values) {","path":"examples/checkout/index.js","position":16,"original_position":16,"commit_id":"a5543cb4506fc278888c4b1eb44b632383e5e5ba","original_commit_id":"a5543cb4506fc278888c4b1eb44b632383e5e5ba","user":{"login":"yomexzo","id":3056958,"avatar_url":"https://avatars.githubusercontent.com/u/3056958?v=3","gravatar_id":"","url":"https://api.github.com/users/yomexzo","html_url":"https://github.com/yomexzo","followers_url":"https://api.github.com/users/yomexzo/followers","following_url":"https://api.github.com/users/yomexzo/following{/other_user}","gists_url":"https://api.github.com/users/yomexzo/gists{/gist_id}","starred_url":"https://api.github.com/users/yomexzo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yomexzo/subscriptions","organizations_url":"https://api.github.com/users/yomexzo/orgs","repos_url":"https://api.github.com/users/yomexzo/repos","events_url":"https://api.github.com/users/yomexzo/events{/privacy}","received_events_url":"https://api.github.com/users/yomexzo/received_events","type":"User","site_admin":false},"body":"indeed, `Promise.all` is ideal. Only that `RSVP` exposes it too. Changing it now.","created_at":"2016-07-11T16:57:51Z","updated_at":"2016-07-11T16:57:51Z","html_url":"https://github.com/Shopify/js-buy-sdk/pull/142#discussion_r70295554","pull_request_url":"https://api.github.com/repos/Shopify/js-buy-sdk/pulls/142","_links":{"self":{"href":"https://api.github.com/repos/Shopify/js-buy-sdk/pulls/comments/70295554"},"html":{"href":"https://github.com/Shopify/js-buy-sdk/pull/142#discussion_r70295554"},"pull_request":{"href":"https://api.github.com/repos/Shopify/js-buy-sdk/pulls/142"}}},"pull_request":{"url":"https://api.github.com/repos/Shopify/js-buy-sdk/pulls/142","id":73798340,"html_url":"https://github.com/Shopify/js-buy-sdk/pull/142","diff_url":"https://github.com/Shopify/js-buy-sdk/pull/142.diff","patch_url":"https://github.com/Shopify/js-buy-sdk/pull/142.patch","issue_url":"https://api.github.com/repos/Shopify/js-buy-sdk/issues/142","number":142,"state":"open","locked":false,"title":"Checkout example","user":{"login":"yomexzo","id":3056958,"avatar_url":"https://avatars.githubusercontent.com/u/3056958?v=3","gravatar_id":"","url":"https://api.github.com/users/yomexzo","html_url":"https://github.com/yomexzo","followers_url":"https://api.github.com/users/yomexzo/followers","following_url":"https://api.github.com/users/yomexzo/following{/other_user}","gists_url":"https://api.github.com/users/yomexzo/gists{/gist_id}","starred_url":"https://api.github.com/users/yomexzo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yomexzo/subscriptions","organizations_url":"https://api.github.com/users/yomexzo/orgs","repos_url":"https://api.github.com/users/yomexzo/repos","events_url":"https://api.github.com/users/yomexzo/events{/privacy}","received_events_url":"https://api.github.com/users/yomexzo/received_events","type":"User","site_admin":false},"body":"This example showcases how to manage the checkout process such that the cart can be cleared.\r\n\r\nReflects what @minasmart referred to in #98 \r\n\r\n👀 @harismahmood89, @minasmart, @tessalt ","created_at":"2016-06-14T19:23:50Z","updated_at":"2016-07-11T16:57:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"87967ec653a998415cef3e3f415c9e5a05f5cc8c","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/Shopify/js-buy-sdk/pulls/142/commits","review_comments_url":"https://api.github.com/repos/Shopify/js-buy-sdk/pulls/142/comments","review_comment_url":"https://api.github.com/repos/Shopify/js-buy-sdk/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Shopify/js-buy-sdk/issues/142/comments","statuses_url":"https://api.github.com/repos/Shopify/js-buy-sdk/statuses/a5543cb4506fc278888c4b1eb44b632383e5e5ba","head":{"label":"Shopify:feature/checkout-example","ref":"feature/checkout-example","sha":"a5543cb4506fc278888c4b1eb44b632383e5e5ba","user":{"login":"Shopify","id":8085,"avatar_url":"https://avatars.githubusercontent.com/u/8085?v=3","gravatar_id":"","url":"https://api.github.com/users/Shopify","html_url":"https://github.com/Shopify","followers_url":"https://api.github.com/users/Shopify/followers","following_url":"https://api.github.com/users/Shopify/following{/other_user}","gists_url":"https://api.github.com/users/Shopify/gists{/gist_id}","starred_url":"https://api.github.com/users/Shopify/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shopify/subscriptions","organizations_url":"https://api.github.com/users/Shopify/orgs","repos_url":"https://api.github.com/users/Shopify/repos","events_url":"https://api.github.com/users/Shopify/events{/privacy}","received_events_url":"https://api.github.com/users/Shopify/received_events","type":"Organization","site_admin":false},"repo":{"id":49018115,"name":"js-buy-sdk","full_name":"Shopify/js-buy-sdk","owner":{"login":"Shopify","id":8085,"avatar_url":"https://avatars.githubusercontent.com/u/8085?v=3","gravatar_id":"","url":"https://api.github.com/users/Shopify","html_url":"https://github.com/Shopify","followers_url":"https://api.github.com/users/Shopify/followers","following_url":"https://api.github.com/users/Shopify/following{/other_user}","gists_url":"https://api.github.com/users/Shopify/gists{/gist_id}","starred_url":"https://api.github.com/users/Shopify/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shopify/subscriptions","organizations_url":"https://api.github.com/users/Shopify/orgs","repos_url":"https://api.github.com/users/Shopify/repos","events_url":"https://api.github.com/users/Shopify/events{/privacy}","received_events_url":"https://api.github.com/users/Shopify/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Shopify/js-buy-sdk","description":"The JS Buy SDK is a lightweight library that allows you to build ecommerce into any website. It is based on Shopify's API and provides the ability to retrieve products and collections from your shop, add products to a cart, and checkout.","fork":false,"url":"https://api.github.com/repos/Shopify/js-buy-sdk","forks_url":"https://api.github.com/repos/Shopify/js-buy-sdk/forks","keys_url":"https://api.github.com/repos/Shopify/js-buy-sdk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Shopify/js-buy-sdk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Shopify/js-buy-sdk/teams","hooks_url":"https://api.github.com/repos/Shopify/js-buy-sdk/hooks","issue_events_url":"https://api.github.com/repos/Shopify/js-buy-sdk/issues/events{/number}","events_url":"https://api.github.com/repos/Shopify/js-buy-sdk/events","assignees_url":"https://api.github.com/repos/Shopify/js-buy-sdk/assignees{/user}","branches_url":"https://api.github.com/repos/Shopify/js-buy-sdk/branches{/branch}","tags_url":"https://api.github.com/repos/Shopify/js-buy-sdk/tags","blobs_url":"https://api.github.com/repos/Shopify/js-buy-sdk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Shopify/js-buy-sdk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Shopify/js-buy-sdk/git/refs{/sha}","trees_url":"https://api.github.com/repos/Shopify/js-buy-sdk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Shopify/js-buy-sdk/statuses/{sha}","languages_url":"https://api.github.com/repos/Shopify/js-buy-sdk/languages","stargazers_url":"https://api.github.com/repos/Shopify/js-buy-sdk/stargazers","contributors_url":"https://api.github.com/repos/Shopify/js-buy-sdk/contributors","subscribers_url":"https://api.github.com/repos/Shopify/js-buy-sdk/subscribers","subscription_url":"https://api.github.com/repos/Shopify/js-buy-sdk/subscription","commits_url":"https://api.github.com/repos/Shopify/js-buy-sdk/commits{/sha}","git_commits_url":"https://api.github.com/repos/Shopify/js-buy-sdk/git/commits{/sha}","comments_url":"https://api.github.com/repos/Shopify/js-buy-sdk/comments{/number}","issue_comment_url":"https://api.github.com/repos/Shopify/js-buy-sdk/issues/comments{/number}","contents_url":"https://api.github.com/repos/Shopify/js-buy-sdk/contents/{+path}","compare_url":"https://api.github.com/repos/Shopify/js-buy-sdk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Shopify/js-buy-sdk/merges","archive_url":"https://api.github.com/repos/Shopify/js-buy-sdk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Shopify/js-buy-sdk/downloads","issues_url":"https://api.github.com/repos/Shopify/js-buy-sdk/issues{/number}","pulls_url":"https://api.github.com/repos/Shopify/js-buy-sdk/pulls{/number}","milestones_url":"https://api.github.com/repos/Shopify/js-buy-sdk/milestones{/number}","notifications_url":"https://api.github.com/repos/Shopify/js-buy-sdk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Shopify/js-buy-sdk/labels{/name}","releases_url":"https://api.github.com/repos/Shopify/js-buy-sdk/releases{/id}","deployments_url":"https://api.github.com/repos/Shopify/js-buy-sdk/deployments","created_at":"2016-01-04T19:26:34Z","updated_at":"2016-07-09T19:19:43Z","pushed_at":"2016-07-11T15:57:59Z","git_url":"git://github.com/Shopify/js-buy-sdk.git","ssh_url":"git@github.com:Shopify/js-buy-sdk.git","clone_url":"https://github.com/Shopify/js-buy-sdk.git","svn_url":"https://github.com/Shopify/js-buy-sdk","homepage":"https://shopify.github.io/js-buy-sdk","size":1128,"stargazers_count":113,"watchers_count":113,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":17,"mirror_url":null,"open_issues_count":25,"forks":17,"open_issues":25,"watchers":113,"default_branch":"master"}},"base":{"label":"Shopify:master","ref":"master","sha":"df4788b437e6bd91e343a5bd665b2bcbc05d93b8","user":{"login":"Shopify","id":8085,"avatar_url":"https://avatars.githubusercontent.com/u/8085?v=3","gravatar_id":"","url":"https://api.github.com/users/Shopify","html_url":"https://github.com/Shopify","followers_url":"https://api.github.com/users/Shopify/followers","following_url":"https://api.github.com/users/Shopify/following{/other_user}","gists_url":"https://api.github.com/users/Shopify/gists{/gist_id}","starred_url":"https://api.github.com/users/Shopify/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shopify/subscriptions","organizations_url":"https://api.github.com/users/Shopify/orgs","repos_url":"https://api.github.com/users/Shopify/repos","events_url":"https://api.github.com/users/Shopify/events{/privacy}","received_events_url":"https://api.github.com/users/Shopify/received_events","type":"Organization","site_admin":false},"repo":{"id":49018115,"name":"js-buy-sdk","full_name":"Shopify/js-buy-sdk","owner":{"login":"Shopify","id":8085,"avatar_url":"https://avatars.githubusercontent.com/u/8085?v=3","gravatar_id":"","url":"https://api.github.com/users/Shopify","html_url":"https://github.com/Shopify","followers_url":"https://api.github.com/users/Shopify/followers","following_url":"https://api.github.com/users/Shopify/following{/other_user}","gists_url":"https://api.github.com/users/Shopify/gists{/gist_id}","starred_url":"https://api.github.com/users/Shopify/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shopify/subscriptions","organizations_url":"https://api.github.com/users/Shopify/orgs","repos_url":"https://api.github.com/users/Shopify/repos","events_url":"https://api.github.com/users/Shopify/events{/privacy}","received_events_url":"https://api.github.com/users/Shopify/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Shopify/js-buy-sdk","description":"The JS Buy SDK is a lightweight library that allows you to build ecommerce into any website. It is based on Shopify's API and provides the ability to retrieve products and collections from your shop, add products to a cart, and checkout.","fork":false,"url":"https://api.github.com/repos/Shopify/js-buy-sdk","forks_url":"https://api.github.com/repos/Shopify/js-buy-sdk/forks","keys_url":"https://api.github.com/repos/Shopify/js-buy-sdk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Shopify/js-buy-sdk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Shopify/js-buy-sdk/teams","hooks_url":"https://api.github.com/repos/Shopify/js-buy-sdk/hooks","issue_events_url":"https://api.github.com/repos/Shopify/js-buy-sdk/issues/events{/number}","events_url":"https://api.github.com/repos/Shopify/js-buy-sdk/events","assignees_url":"https://api.github.com/repos/Shopify/js-buy-sdk/assignees{/user}","branches_url":"https://api.github.com/repos/Shopify/js-buy-sdk/branches{/branch}","tags_url":"https://api.github.com/repos/Shopify/js-buy-sdk/tags","blobs_url":"https://api.github.com/repos/Shopify/js-buy-sdk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Shopify/js-buy-sdk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Shopify/js-buy-sdk/git/refs{/sha}","trees_url":"https://api.github.com/repos/Shopify/js-buy-sdk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Shopify/js-buy-sdk/statuses/{sha}","languages_url":"https://api.github.com/repos/Shopify/js-buy-sdk/languages","stargazers_url":"https://api.github.com/repos/Shopify/js-buy-sdk/stargazers","contributors_url":"https://api.github.com/repos/Shopify/js-buy-sdk/contributors","subscribers_url":"https://api.github.com/repos/Shopify/js-buy-sdk/subscribers","subscription_url":"https://api.github.com/repos/Shopify/js-buy-sdk/subscription","commits_url":"https://api.github.com/repos/Shopify/js-buy-sdk/commits{/sha}","git_commits_url":"https://api.github.com/repos/Shopify/js-buy-sdk/git/commits{/sha}","comments_url":"https://api.github.com/repos/Shopify/js-buy-sdk/comments{/number}","issue_comment_url":"https://api.github.com/repos/Shopify/js-buy-sdk/issues/comments{/number}","contents_url":"https://api.github.com/repos/Shopify/js-buy-sdk/contents/{+path}","compare_url":"https://api.github.com/repos/Shopify/js-buy-sdk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Shopify/js-buy-sdk/merges","archive_url":"https://api.github.com/repos/Shopify/js-buy-sdk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Shopify/js-buy-sdk/downloads","issues_url":"https://api.github.com/repos/Shopify/js-buy-sdk/issues{/number}","pulls_url":"https://api.github.com/repos/Shopify/js-buy-sdk/pulls{/number}","milestones_url":"https://api.github.com/repos/Shopify/js-buy-sdk/milestones{/number}","notifications_url":"https://api.github.com/repos/Shopify/js-buy-sdk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Shopify/js-buy-sdk/labels{/name}","releases_url":"https://api.github.com/repos/Shopify/js-buy-sdk/releases{/id}","deployments_url":"https://api.github.com/repos/Shopify/js-buy-sdk/deployments","created_at":"2016-01-04T19:26:34Z","updated_at":"2016-07-09T19:19:43Z","pushed_at":"2016-07-11T15:57:59Z","git_url":"git://github.com/Shopify/js-buy-sdk.git","ssh_url":"git@github.com:Shopify/js-buy-sdk.git","clone_url":"https://github.com/Shopify/js-buy-sdk.git","svn_url":"https://github.com/Shopify/js-buy-sdk","homepage":"https://shopify.github.io/js-buy-sdk","size":1128,"stargazers_count":113,"watchers_count":113,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":17,"mirror_url":null,"open_issues_count":25,"forks":17,"open_issues":25,"watchers":113,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Shopify/js-buy-sdk/pulls/142"},"html":{"href":"https://github.com/Shopify/js-buy-sdk/pull/142"},"issue":{"href":"https://api.github.com/repos/Shopify/js-buy-sdk/issues/142"},"comments":{"href":"https://api.github.com/repos/Shopify/js-buy-sdk/issues/142/comments"},"review_comments":{"href":"https://api.github.com/repos/Shopify/js-buy-sdk/pulls/142/comments"},"review_comment":{"href":"https://api.github.com/repos/Shopify/js-buy-sdk/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Shopify/js-buy-sdk/pulls/142/commits"},"statuses":{"href":"https://api.github.com/repos/Shopify/js-buy-sdk/statuses/a5543cb4506fc278888c4b1eb44b632383e5e5ba"}}}}
{"actor":{"display_login":"yomexzo"}}