{"action":"opened","number":423,"pull_request":{"url":"https://api.github.com/repos/bigcommerce/checkout-sdk-js/pulls/423","id":219566919,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE5NTY2OTE5","html_url":"https://github.com/bigcommerce/checkout-sdk-js/pull/423","diff_url":"https://github.com/bigcommerce/checkout-sdk-js/pull/423.diff","patch_url":"https://github.com/bigcommerce/checkout-sdk-js/pull/423.patch","issue_url":"https://api.github.com/repos/bigcommerce/checkout-sdk-js/issues/423","number":423,"state":"open","locked":false,"title":"CHECKOUT-3475: Emit `FRAME_ERROR` event if unable to embed checkout in iframe","user":{"login":"davidchin","id":667603,"node_id":"MDQ6VXNlcjY2NzYwMw==","avatar_url":"https://avatars1.githubusercontent.com/u/667603?v=4","gravatar_id":"","url":"https://api.github.com/users/davidchin","html_url":"https://github.com/davidchin","followers_url":"https://api.github.com/users/davidchin/followers","following_url":"https://api.github.com/users/davidchin/following{/other_user}","gists_url":"https://api.github.com/users/davidchin/gists{/gist_id}","starred_url":"https://api.github.com/users/davidchin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidchin/subscriptions","organizations_url":"https://api.github.com/users/davidchin/orgs","repos_url":"https://api.github.com/users/davidchin/repos","events_url":"https://api.github.com/users/davidchin/events{/privacy}","received_events_url":"https://api.github.com/users/davidchin/received_events","type":"User","site_admin":false},"body":"## What?\r\n* Emit an error event if unable to embed the checkout form as an iframe.\r\n\r\n## Why?\r\n* So you can catch and handle the error in case you can't embed the iframe for whatever reason. i.e.:\r\n```ts\r\nembedCheckout(config)\r\n    .catch(error => {\r\n        window.alert(error.message);\r\n        window.location.assign('/cart');\r\n    });\r\n```\r\n* Because most likely the iframe will be embedded across domains, so you can't listen for error events from the parent frame. Instead, you need to rely on the child frame to tell the parent frame when the checkout form cannot be loaded.\r\n\r\n## Testing / Proof\r\n* Unit\r\n\r\n@bigcommerce/checkout @bigcommerce/payments\r\n","created_at":"2018-10-02T02:15:20Z","updated_at":"2018-10-02T02:15:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/bigcommerce/checkout-sdk-js/pulls/423/commits","review_comments_url":"https://api.github.com/repos/bigcommerce/checkout-sdk-js/pulls/423/comments","review_comment_url":"https://api.github.com/repos/bigcommerce/checkout-sdk-js/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bigcommerce/checkout-sdk-js/issues/423/comments","statuses_url":"https://api.github.com/repos/bigcommerce/checkout-sdk-js/statuses/50ec31a53546ef246dd7e46688361180b7689178","head":{"label":"davidchin:frame_error","ref":"frame_error","sha":"50ec31a53546ef246dd7e46688361180b7689178","user":{"login":"davidchin","id":667603,"node_id":"MDQ6VXNlcjY2NzYwMw==","avatar_url":"https://avatars1.githubusercontent.com/u/667603?v=4","gravatar_id":"","url":"https://api.github.com/users/davidchin","html_url":"https://github.com/davidchin","followers_url":"https://api.github.com/users/davidchin/followers","following_url":"https://api.github.com/users/davidchin/following{/other_user}","gists_url":"https://api.github.com/users/davidchin/gists{/gist_id}","starred_url":"https://api.github.com/users/davidchin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidchin/subscriptions","organizations_url":"https://api.github.com/users/davidchin/orgs","repos_url":"https://api.github.com/users/davidchin/repos","events_url":"https://api.github.com/users/davidchin/events{/privacy}","received_events_url":"https://api.github.com/users/davidchin/received_events","type":"User","site_admin":false},"repo":{"id":144085447,"node_id":"MDEwOlJlcG9zaXRvcnkxNDQwODU0NDc=","name":"checkout-sdk-js","full_name":"davidchin/checkout-sdk-js","private":false,"owner":{"login":"davidchin","id":667603,"node_id":"MDQ6VXNlcjY2NzYwMw==","avatar_url":"https://avatars1.githubusercontent.com/u/667603?v=4","gravatar_id":"","url":"https://api.github.com/users/davidchin","html_url":"https://github.com/davidchin","followers_url":"https://api.github.com/users/davidchin/followers","following_url":"https://api.github.com/users/davidchin/following{/other_user}","gists_url":"https://api.github.com/users/davidchin/gists{/gist_id}","starred_url":"https://api.github.com/users/davidchin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidchin/subscriptions","organizations_url":"https://api.github.com/users/davidchin/orgs","repos_url":"https://api.github.com/users/davidchin/repos","events_url":"https://api.github.com/users/davidchin/events{/privacy}","received_events_url":"https://api.github.com/users/davidchin/received_events","type":"User","site_admin":false},"html_url":"https://github.com/davidchin/checkout-sdk-js","description":"BigCommerce Checkout JavaScript SDK","fork":true,"url":"https://api.github.com/repos/davidchin/checkout-sdk-js","forks_url":"https://api.github.com/repos/davidchin/checkout-sdk-js/forks","keys_url":"https://api.github.com/repos/davidchin/checkout-sdk-js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/davidchin/checkout-sdk-js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/davidchin/checkout-sdk-js/teams","hooks_url":"https://api.github.com/repos/davidchin/checkout-sdk-js/hooks","issue_events_url":"https://api.github.com/repos/davidchin/checkout-sdk-js/issues/events{/number}","events_url":"https://api.github.com/repos/davidchin/checkout-sdk-js/events","assignees_url":"https://api.github.com/repos/davidchin/checkout-sdk-js/assignees{/user}","branches_url":"https://api.github.com/repos/davidchin/checkout-sdk-js/branches{/branch}","tags_url":"https://api.github.com/repos/davidchin/checkout-sdk-js/tags","blobs_url":"https://api.github.com/repos/davidchin/checkout-sdk-js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/davidchin/checkout-sdk-js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/davidchin/checkout-sdk-js/git/refs{/sha}","trees_url":"https://api.github.com/repos/davidchin/checkout-sdk-js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/davidchin/checkout-sdk-js/statuses/{sha}","languages_url":"https://api.github.com/repos/davidchin/checkout-sdk-js/languages","stargazers_url":"https://api.github.com/repos/davidchin/checkout-sdk-js/stargazers","contributors_url":"https://api.github.com/repos/davidchin/checkout-sdk-js/contributors","subscribers_url":"https://api.github.com/repos/davidchin/checkout-sdk-js/subscribers","subscription_url":"https://api.github.com/repos/davidchin/checkout-sdk-js/subscription","commits_url":"https://api.github.com/repos/davidchin/checkout-sdk-js/commits{/sha}","git_commits_url":"https://api.github.com/repos/davidchin/checkout-sdk-js/git/commits{/sha}","comments_url":"https://api.github.com/repos/davidchin/checkout-sdk-js/comments{/number}","issue_comment_url":"https://api.github.com/repos/davidchin/checkout-sdk-js/issues/comments{/number}","contents_url":"https://api.github.com/repos/davidchin/checkout-sdk-js/contents/{+path}","compare_url":"https://api.github.com/repos/davidchin/checkout-sdk-js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/davidchin/checkout-sdk-js/merges","archive_url":"https://api.github.com/repos/davidchin/checkout-sdk-js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/davidchin/checkout-sdk-js/downloads","issues_url":"https://api.github.com/repos/davidchin/checkout-sdk-js/issues{/number}","pulls_url":"https://api.github.com/repos/davidchin/checkout-sdk-js/pulls{/number}","milestones_url":"https://api.github.com/repos/davidchin/checkout-sdk-js/milestones{/number}","notifications_url":"https://api.github.com/repos/davidchin/checkout-sdk-js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/davidchin/checkout-sdk-js/labels{/name}","releases_url":"https://api.github.com/repos/davidchin/checkout-sdk-js/releases{/id}","deployments_url":"https://api.github.com/repos/davidchin/checkout-sdk-js/deployments","created_at":"2018-08-09T01:21:09Z","updated_at":"2018-08-09T01:21:12Z","pushed_at":"2018-10-02T02:06:50Z","git_url":"git://github.com/davidchin/checkout-sdk-js.git","ssh_url":"git@github.com:davidchin/checkout-sdk-js.git","clone_url":"https://github.com/davidchin/checkout-sdk-js.git","svn_url":"https://github.com/davidchin/checkout-sdk-js","homepage":"","size":25232,"stargazers_count":0,"watchers_count":0,"language":"TypeScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"bigcommerce:embeddable_checkout","ref":"embeddable_checkout","sha":"d232237e40fbbe9a430c225233cf3883c988678a","user":{"login":"bigcommerce","id":186342,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE4NjM0Mg==","avatar_url":"https://avatars1.githubusercontent.com/u/186342?v=4","gravatar_id":"","url":"https://api.github.com/users/bigcommerce","html_url":"https://github.com/bigcommerce","followers_url":"https://api.github.com/users/bigcommerce/followers","following_url":"https://api.github.com/users/bigcommerce/following{/other_user}","gists_url":"https://api.github.com/users/bigcommerce/gists{/gist_id}","starred_url":"https://api.github.com/users/bigcommerce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bigcommerce/subscriptions","organizations_url":"https://api.github.com/users/bigcommerce/orgs","repos_url":"https://api.github.com/users/bigcommerce/repos","events_url":"https://api.github.com/users/bigcommerce/events{/privacy}","received_events_url":"https://api.github.com/users/bigcommerce/received_events","type":"Organization","site_admin":false},"repo":{"id":112432187,"node_id":"MDEwOlJlcG9zaXRvcnkxMTI0MzIxODc=","name":"checkout-sdk-js","full_name":"bigcommerce/checkout-sdk-js","private":false,"owner":{"login":"bigcommerce","id":186342,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE4NjM0Mg==","avatar_url":"https://avatars1.githubusercontent.com/u/186342?v=4","gravatar_id":"","url":"https://api.github.com/users/bigcommerce","html_url":"https://github.com/bigcommerce","followers_url":"https://api.github.com/users/bigcommerce/followers","following_url":"https://api.github.com/users/bigcommerce/following{/other_user}","gists_url":"https://api.github.com/users/bigcommerce/gists{/gist_id}","starred_url":"https://api.github.com/users/bigcommerce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bigcommerce/subscriptions","organizations_url":"https://api.github.com/users/bigcommerce/orgs","repos_url":"https://api.github.com/users/bigcommerce/repos","events_url":"https://api.github.com/users/bigcommerce/events{/privacy}","received_events_url":"https://api.github.com/users/bigcommerce/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/bigcommerce/checkout-sdk-js","description":"BigCommerce Checkout JavaScript SDK","fork":false,"url":"https://api.github.com/repos/bigcommerce/checkout-sdk-js","forks_url":"https://api.github.com/repos/bigcommerce/checkout-sdk-js/forks","keys_url":"https://api.github.com/repos/bigcommerce/checkout-sdk-js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bigcommerce/checkout-sdk-js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bigcommerce/checkout-sdk-js/teams","hooks_url":"https://api.github.com/repos/bigcommerce/checkout-sdk-js/hooks","issue_events_url":"https://api.github.com/repos/bigcommerce/checkout-sdk-js/issues/events{/number}","events_url":"https://api.github.com/repos/bigcommerce/checkout-sdk-js/events","assignees_url":"https://api.github.com/repos/bigcommerce/checkout-sdk-js/assignees{/user}","branches_url":"https://api.github.com/repos/bigcommerce/checkout-sdk-js/branches{/branch}","tags_url":"https://api.github.com/repos/bigcommerce/checkout-sdk-js/tags","blobs_url":"https://api.github.com/repos/bigcommerce/checkout-sdk-js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bigcommerce/checkout-sdk-js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bigcommerce/checkout-sdk-js/git/refs{/sha}","trees_url":"https://api.github.com/repos/bigcommerce/checkout-sdk-js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bigcommerce/checkout-sdk-js/statuses/{sha}","languages_url":"https://api.github.com/repos/bigcommerce/checkout-sdk-js/languages","stargazers_url":"https://api.github.com/repos/bigcommerce/checkout-sdk-js/stargazers","contributors_url":"https://api.github.com/repos/bigcommerce/checkout-sdk-js/contributors","subscribers_url":"https://api.github.com/repos/bigcommerce/checkout-sdk-js/subscribers","subscription_url":"https://api.github.com/repos/bigcommerce/checkout-sdk-js/subscription","commits_url":"https://api.github.com/repos/bigcommerce/checkout-sdk-js/commits{/sha}","git_commits_url":"https://api.github.com/repos/bigcommerce/checkout-sdk-js/git/commits{/sha}","comments_url":"https://api.github.com/repos/bigcommerce/checkout-sdk-js/comments{/number}","issue_comment_url":"https://api.github.com/repos/bigcommerce/checkout-sdk-js/issues/comments{/number}","contents_url":"https://api.github.com/repos/bigcommerce/checkout-sdk-js/contents/{+path}","compare_url":"https://api.github.com/repos/bigcommerce/checkout-sdk-js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bigcommerce/checkout-sdk-js/merges","archive_url":"https://api.github.com/repos/bigcommerce/checkout-sdk-js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bigcommerce/checkout-sdk-js/downloads","issues_url":"https://api.github.com/repos/bigcommerce/checkout-sdk-js/issues{/number}","pulls_url":"https://api.github.com/repos/bigcommerce/checkout-sdk-js/pulls{/number}","milestones_url":"https://api.github.com/repos/bigcommerce/checkout-sdk-js/milestones{/number}","notifications_url":"https://api.github.com/repos/bigcommerce/checkout-sdk-js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bigcommerce/checkout-sdk-js/labels{/name}","releases_url":"https://api.github.com/repos/bigcommerce/checkout-sdk-js/releases{/id}","deployments_url":"https://api.github.com/repos/bigcommerce/checkout-sdk-js/deployments","created_at":"2017-11-29T05:43:53Z","updated_at":"2018-10-02T01:23:07Z","pushed_at":"2018-10-02T01:23:04Z","git_url":"git://github.com/bigcommerce/checkout-sdk-js.git","ssh_url":"git@github.com:bigcommerce/checkout-sdk-js.git","clone_url":"https://github.com/bigcommerce/checkout-sdk-js.git","svn_url":"https://github.com/bigcommerce/checkout-sdk-js","homepage":"","size":22388,"stargazers_count":16,"watchers_count":16,"language":"TypeScript","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":33,"mirror_url":null,"archived":false,"open_issues_count":14,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":33,"open_issues":14,"watchers":16,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/bigcommerce/checkout-sdk-js/pulls/423"},"html":{"href":"https://github.com/bigcommerce/checkout-sdk-js/pull/423"},"issue":{"href":"https://api.github.com/repos/bigcommerce/checkout-sdk-js/issues/423"},"comments":{"href":"https://api.github.com/repos/bigcommerce/checkout-sdk-js/issues/423/comments"},"review_comments":{"href":"https://api.github.com/repos/bigcommerce/checkout-sdk-js/pulls/423/comments"},"review_comment":{"href":"https://api.github.com/repos/bigcommerce/checkout-sdk-js/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bigcommerce/checkout-sdk-js/pulls/423/commits"},"statuses":{"href":"https://api.github.com/repos/bigcommerce/checkout-sdk-js/statuses/50ec31a53546ef246dd7e46688361180b7689178"}},"author_association":"CONTRIBUTOR","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":134,"deletions":24,"changed_files":9}}
{"actor":{"display_login":"davidchin"}}