{"action":"created","comment":{"url":"https://api.github.com/repos/Shopify/unity-buy-sdk/pulls/comments/125523155","pull_request_review_id":47919400,"id":125523155,"diff_hunk":"@@ -217,6 +214,50 @@ cart.LineItems.Get(firstProduct, selectedOptions);\n cart.LineItems.Delete(firstProduct, selectedOptions);\n ```\n \n+### Native web view checkout\n+\n+After creating an instance of `Cart` and adding items to it, you can use the `CheckoutWithNativeWebView` method to \n+start a native modal overlay on top of your game with a web view containing the checkout for the cart.\n+\n+`CheckoutWithNativeWebView` which takes in 3 callback parameters:\n+\n+* `CheckoutDidSucceed` is called when the user has completed a checkout successfully.\n+\n+* `CheckoutDidCancel` is called when the user cancels out of the checkout.\n+\n+* `CheckoutDidFail` is called when an error was encountered during the web checkout. The callback will be passed an instance of `ShopifyError` describing the issue.\n+\n+```cs\n+// Sample code for adding some product variants to your cart.\n+var cart = ShopifyBuy.Client().Cart();\n+var secondProductVariants = (List<ProductVariant>) products[1].variants();\n+ProductVariant secondProductFirstVariant = secondProductVariants[0];\n+\n+cart.LineItems.AddOrUpdate(secondProductFirstVariant.id(), 1);","path":"EXAMPLES.md","position":45,"original_position":45,"commit_id":"d8af0c3a52b2b7be7678037fcc4ac1741564b621","original_commit_id":"d8af0c3a52b2b7be7678037fcc4ac1741564b621","user":{"login":"mikkoh","id":496903,"avatar_url":"https://avatars1.githubusercontent.com/u/496903?v=3","gravatar_id":"","url":"https://api.github.com/users/mikkoh","html_url":"https://github.com/mikkoh","followers_url":"https://api.github.com/users/mikkoh/followers","following_url":"https://api.github.com/users/mikkoh/following{/other_user}","gists_url":"https://api.github.com/users/mikkoh/gists{/gist_id}","starred_url":"https://api.github.com/users/mikkoh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikkoh/subscriptions","organizations_url":"https://api.github.com/users/mikkoh/orgs","repos_url":"https://api.github.com/users/mikkoh/repos","events_url":"https://api.github.com/users/mikkoh/events{/privacy}","received_events_url":"https://api.github.com/users/mikkoh/received_events","type":"User","site_admin":false},"body":"You can just do:\r\n```\r\ncart.LineItems.AddOrUpdate(secondProductFirstVariant, 1);\r\n```","created_at":"2017-07-04T19:35:33Z","updated_at":"2017-07-04T19:35:34Z","html_url":"https://github.com/Shopify/unity-buy-sdk/pull/143#discussion_r125523155","pull_request_url":"https://api.github.com/repos/Shopify/unity-buy-sdk/pulls/143","_links":{"self":{"href":"https://api.github.com/repos/Shopify/unity-buy-sdk/pulls/comments/125523155"},"html":{"href":"https://github.com/Shopify/unity-buy-sdk/pull/143#discussion_r125523155"},"pull_request":{"href":"https://api.github.com/repos/Shopify/unity-buy-sdk/pulls/143"}}},"pull_request":{"url":"https://api.github.com/repos/Shopify/unity-buy-sdk/pulls/143","id":128849140,"html_url":"https://github.com/Shopify/unity-buy-sdk/pull/143","diff_url":"https://github.com/Shopify/unity-buy-sdk/pull/143.diff","patch_url":"https://github.com/Shopify/unity-buy-sdk/pull/143.patch","issue_url":"https://api.github.com/repos/Shopify/unity-buy-sdk/issues/143","number":143,"state":"open","locked":false,"title":"[Docs] Updates examples to include native web view checkout","user":{"login":"sleroux","id":434322,"avatar_url":"https://avatars3.githubusercontent.com/u/434322?v=3","gravatar_id":"","url":"https://api.github.com/users/sleroux","html_url":"https://github.com/sleroux","followers_url":"https://api.github.com/users/sleroux/followers","following_url":"https://api.github.com/users/sleroux/following{/other_user}","gists_url":"https://api.github.com/users/sleroux/gists{/gist_id}","starred_url":"https://api.github.com/users/sleroux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sleroux/subscriptions","organizations_url":"https://api.github.com/users/sleroux/orgs","repos_url":"https://api.github.com/users/sleroux/repos","events_url":"https://api.github.com/users/sleroux/events{/privacy}","received_events_url":"https://api.github.com/users/sleroux/received_events","type":"User","site_admin":false},"body":null,"created_at":"2017-07-04T19:14:27Z","updated_at":"2017-07-04T19:35:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"13ce09cd6a4e9d73516eefc7931895c3a53f9940","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/Shopify/unity-buy-sdk/pulls/143/commits","review_comments_url":"https://api.github.com/repos/Shopify/unity-buy-sdk/pulls/143/comments","review_comment_url":"https://api.github.com/repos/Shopify/unity-buy-sdk/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Shopify/unity-buy-sdk/issues/143/comments","statuses_url":"https://api.github.com/repos/Shopify/unity-buy-sdk/statuses/d8af0c3a52b2b7be7678037fcc4ac1741564b621","head":{"label":"Shopify:sleroux/update-docs-web-checkout","ref":"sleroux/update-docs-web-checkout","sha":"d8af0c3a52b2b7be7678037fcc4ac1741564b621","user":{"login":"Shopify","id":8085,"avatar_url":"https://avatars2.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":75216845,"name":"unity-buy-sdk","full_name":"Shopify/unity-buy-sdk","owner":{"login":"Shopify","id":8085,"avatar_url":"https://avatars2.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/unity-buy-sdk","description":"The Unity Buy SDK allows Unity developers to query and sell products from Shopify directly in Unity.","fork":false,"url":"https://api.github.com/repos/Shopify/unity-buy-sdk","forks_url":"https://api.github.com/repos/Shopify/unity-buy-sdk/forks","keys_url":"https://api.github.com/repos/Shopify/unity-buy-sdk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Shopify/unity-buy-sdk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Shopify/unity-buy-sdk/teams","hooks_url":"https://api.github.com/repos/Shopify/unity-buy-sdk/hooks","issue_events_url":"https://api.github.com/repos/Shopify/unity-buy-sdk/issues/events{/number}","events_url":"https://api.github.com/repos/Shopify/unity-buy-sdk/events","assignees_url":"https://api.github.com/repos/Shopify/unity-buy-sdk/assignees{/user}","branches_url":"https://api.github.com/repos/Shopify/unity-buy-sdk/branches{/branch}","tags_url":"https://api.github.com/repos/Shopify/unity-buy-sdk/tags","blobs_url":"https://api.github.com/repos/Shopify/unity-buy-sdk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Shopify/unity-buy-sdk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Shopify/unity-buy-sdk/git/refs{/sha}","trees_url":"https://api.github.com/repos/Shopify/unity-buy-sdk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Shopify/unity-buy-sdk/statuses/{sha}","languages_url":"https://api.github.com/repos/Shopify/unity-buy-sdk/languages","stargazers_url":"https://api.github.com/repos/Shopify/unity-buy-sdk/stargazers","contributors_url":"https://api.github.com/repos/Shopify/unity-buy-sdk/contributors","subscribers_url":"https://api.github.com/repos/Shopify/unity-buy-sdk/subscribers","subscription_url":"https://api.github.com/repos/Shopify/unity-buy-sdk/subscription","commits_url":"https://api.github.com/repos/Shopify/unity-buy-sdk/commits{/sha}","git_commits_url":"https://api.github.com/repos/Shopify/unity-buy-sdk/git/commits{/sha}","comments_url":"https://api.github.com/repos/Shopify/unity-buy-sdk/comments{/number}","issue_comment_url":"https://api.github.com/repos/Shopify/unity-buy-sdk/issues/comments{/number}","contents_url":"https://api.github.com/repos/Shopify/unity-buy-sdk/contents/{+path}","compare_url":"https://api.github.com/repos/Shopify/unity-buy-sdk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Shopify/unity-buy-sdk/merges","archive_url":"https://api.github.com/repos/Shopify/unity-buy-sdk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Shopify/unity-buy-sdk/downloads","issues_url":"https://api.github.com/repos/Shopify/unity-buy-sdk/issues{/number}","pulls_url":"https://api.github.com/repos/Shopify/unity-buy-sdk/pulls{/number}","milestones_url":"https://api.github.com/repos/Shopify/unity-buy-sdk/milestones{/number}","notifications_url":"https://api.github.com/repos/Shopify/unity-buy-sdk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Shopify/unity-buy-sdk/labels{/name}","releases_url":"https://api.github.com/repos/Shopify/unity-buy-sdk/releases{/id}","deployments_url":"https://api.github.com/repos/Shopify/unity-buy-sdk/deployments","created_at":"2016-11-30T18:51:35Z","updated_at":"2017-05-29T19:07:58Z","pushed_at":"2017-07-04T19:14:28Z","git_url":"git://github.com/Shopify/unity-buy-sdk.git","ssh_url":"git@github.com:Shopify/unity-buy-sdk.git","clone_url":"https://github.com/Shopify/unity-buy-sdk.git","svn_url":"https://github.com/Shopify/unity-buy-sdk","homepage":"https://help.shopify.com/api/sdks/custom-storefront/unity-buy-sdk","size":3155,"stargazers_count":12,"watchers_count":12,"language":"C#","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":1,"mirror_url":null,"open_issues_count":23,"forks":1,"open_issues":23,"watchers":12,"default_branch":"master"}},"base":{"label":"Shopify:beta","ref":"beta","sha":"c7a656a29017e4e9af4520154e5ff2f1f2878459","user":{"login":"Shopify","id":8085,"avatar_url":"https://avatars2.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":75216845,"name":"unity-buy-sdk","full_name":"Shopify/unity-buy-sdk","owner":{"login":"Shopify","id":8085,"avatar_url":"https://avatars2.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/unity-buy-sdk","description":"The Unity Buy SDK allows Unity developers to query and sell products from Shopify directly in Unity.","fork":false,"url":"https://api.github.com/repos/Shopify/unity-buy-sdk","forks_url":"https://api.github.com/repos/Shopify/unity-buy-sdk/forks","keys_url":"https://api.github.com/repos/Shopify/unity-buy-sdk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Shopify/unity-buy-sdk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Shopify/unity-buy-sdk/teams","hooks_url":"https://api.github.com/repos/Shopify/unity-buy-sdk/hooks","issue_events_url":"https://api.github.com/repos/Shopify/unity-buy-sdk/issues/events{/number}","events_url":"https://api.github.com/repos/Shopify/unity-buy-sdk/events","assignees_url":"https://api.github.com/repos/Shopify/unity-buy-sdk/assignees{/user}","branches_url":"https://api.github.com/repos/Shopify/unity-buy-sdk/branches{/branch}","tags_url":"https://api.github.com/repos/Shopify/unity-buy-sdk/tags","blobs_url":"https://api.github.com/repos/Shopify/unity-buy-sdk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Shopify/unity-buy-sdk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Shopify/unity-buy-sdk/git/refs{/sha}","trees_url":"https://api.github.com/repos/Shopify/unity-buy-sdk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Shopify/unity-buy-sdk/statuses/{sha}","languages_url":"https://api.github.com/repos/Shopify/unity-buy-sdk/languages","stargazers_url":"https://api.github.com/repos/Shopify/unity-buy-sdk/stargazers","contributors_url":"https://api.github.com/repos/Shopify/unity-buy-sdk/contributors","subscribers_url":"https://api.github.com/repos/Shopify/unity-buy-sdk/subscribers","subscription_url":"https://api.github.com/repos/Shopify/unity-buy-sdk/subscription","commits_url":"https://api.github.com/repos/Shopify/unity-buy-sdk/commits{/sha}","git_commits_url":"https://api.github.com/repos/Shopify/unity-buy-sdk/git/commits{/sha}","comments_url":"https://api.github.com/repos/Shopify/unity-buy-sdk/comments{/number}","issue_comment_url":"https://api.github.com/repos/Shopify/unity-buy-sdk/issues/comments{/number}","contents_url":"https://api.github.com/repos/Shopify/unity-buy-sdk/contents/{+path}","compare_url":"https://api.github.com/repos/Shopify/unity-buy-sdk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Shopify/unity-buy-sdk/merges","archive_url":"https://api.github.com/repos/Shopify/unity-buy-sdk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Shopify/unity-buy-sdk/downloads","issues_url":"https://api.github.com/repos/Shopify/unity-buy-sdk/issues{/number}","pulls_url":"https://api.github.com/repos/Shopify/unity-buy-sdk/pulls{/number}","milestones_url":"https://api.github.com/repos/Shopify/unity-buy-sdk/milestones{/number}","notifications_url":"https://api.github.com/repos/Shopify/unity-buy-sdk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Shopify/unity-buy-sdk/labels{/name}","releases_url":"https://api.github.com/repos/Shopify/unity-buy-sdk/releases{/id}","deployments_url":"https://api.github.com/repos/Shopify/unity-buy-sdk/deployments","created_at":"2016-11-30T18:51:35Z","updated_at":"2017-05-29T19:07:58Z","pushed_at":"2017-07-04T19:14:28Z","git_url":"git://github.com/Shopify/unity-buy-sdk.git","ssh_url":"git@github.com:Shopify/unity-buy-sdk.git","clone_url":"https://github.com/Shopify/unity-buy-sdk.git","svn_url":"https://github.com/Shopify/unity-buy-sdk","homepage":"https://help.shopify.com/api/sdks/custom-storefront/unity-buy-sdk","size":3155,"stargazers_count":12,"watchers_count":12,"language":"C#","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":1,"mirror_url":null,"open_issues_count":23,"forks":1,"open_issues":23,"watchers":12,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Shopify/unity-buy-sdk/pulls/143"},"html":{"href":"https://github.com/Shopify/unity-buy-sdk/pull/143"},"issue":{"href":"https://api.github.com/repos/Shopify/unity-buy-sdk/issues/143"},"comments":{"href":"https://api.github.com/repos/Shopify/unity-buy-sdk/issues/143/comments"},"review_comments":{"href":"https://api.github.com/repos/Shopify/unity-buy-sdk/pulls/143/comments"},"review_comment":{"href":"https://api.github.com/repos/Shopify/unity-buy-sdk/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Shopify/unity-buy-sdk/pulls/143/commits"},"statuses":{"href":"https://api.github.com/repos/Shopify/unity-buy-sdk/statuses/d8af0c3a52b2b7be7678037fcc4ac1741564b621"}}}}
{"actor":{"display_login":"mikkoh"}}