{"action":"created","comment":{"url":"https://api.github.com/repos/xendit/xendit-js-node/pulls/comments/145025836","pull_request_review_id":69763805,"id":145025836,"diff_hunk":"@@ -0,0 +1,42 @@\n+'use strict';\n+\n+function DeviceFingerprintUtil() {}\n+\n+DeviceFingerprintUtil.createDeviceFingerprintID = function () {\n+    return Math.random().toString(36).substring(7);\n+};\n+\n+DeviceFingerprintUtil.mountDeviceFingerprintHTML = function (deviceFingerprintID) {\n+    // window.addEventListener('load', function onload() {\n+    //     var xenditURL = 'https://api.xendit.co';\n+    //\n+    //     var pixelURL1 = xenditURL + '/device_fingerprint?option=IMAGE&amp;session_id=' + deviceFingerprintID + '&amp;image_flag=1';\n+    //     var pixelURL2 = xenditURL + '/device_fingerprint?option=IMAGE&amp;session_id=' + deviceFingerprintID + '&amp;image_flag=2';\n+    //     var objectURL = xenditURL + '/device_fingerprint?option=OBJECT&amp;session_id='+ deviceFingerprintID;\n+    //     var scriptURL = xenditURL + '/device_fingerprint?option=SCRIPT&amp;session_id='+ deviceFingerprintID;\n+    //     var iframeURL = xenditURL + '/device_fingerprint?option=IFRAME&amp;session_id='+ deviceFingerprintID;\n+    //\n+    //     var containerEl = document.createElement('div');\n+    //     containerEl.style.width = 0;\n+    //     containerEl.style.height = 0;\n+    //     containerEl.id = 'xendit-fraud-detection';\n+    //\n+    //     containerEl.innerHTML = '' +\n+    //         '<p style=\"background:url(' + pixelURL1 + ')\"></p>' +\n+    //         '<img src=\"' + pixelURL2 + '\" alt=\"\" />' +\n+    //         '<object type=\"application/x-shockwave-flash\" data=\"' + objectURL + '\" width=\"1\" height=\"1\" id=\"hm_fp\">' +\n+    //             '<param name=\"movie\" value=\"' + objectURL + '\" />' +\n+    //             '<div></div>' +\n+    //         '</object>' +\n+    //         '<script type=\"text/javascript\" src=\"' + scriptURL + '\"></script>' +\n+    //         '<noscript>' +\n+    //             '<iframe style=\"width: 100px; height: 100px; border: 0; position: absolute; top: -5000px;\"\" src=\"' + iframeURL + '\"></iframe>' +\n+    //         '</noscript>';\n+    //\n+    //     window.removeEventListener('load', onload, false);\n+    //\n+    //     document.getElementsByTagName('body')[0].appendChild(containerEl);\n+    // }, false);\n+};\n+\n+module.exports = DeviceFingerprintUtil;","path":"src/utils/device_fingerprint_util.js","position":42,"original_position":42,"commit_id":"a9aa5ecb51943b712df4457b8c7fae2c7d14d5e8","original_commit_id":"a9aa5ecb51943b712df4457b8c7fae2c7d14d5e8","user":{"login":"afik","id":7345441,"avatar_url":"https://avatars2.githubusercontent.com/u/7345441?v=4","gravatar_id":"","url":"https://api.github.com/users/afik","html_url":"https://github.com/afik","followers_url":"https://api.github.com/users/afik/followers","following_url":"https://api.github.com/users/afik/following{/other_user}","gists_url":"https://api.github.com/users/afik/gists{/gist_id}","starred_url":"https://api.github.com/users/afik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/afik/subscriptions","organizations_url":"https://api.github.com/users/afik/orgs","repos_url":"https://api.github.com/users/afik/repos","events_url":"https://api.github.com/users/afik/events{/privacy}","received_events_url":"https://api.github.com/users/afik/received_events","type":"User","site_admin":false},"body":"remove this file","created_at":"2017-10-17T04:33:42Z","updated_at":"2017-10-17T04:33:42Z","html_url":"https://github.com/xendit/xendit-js-node/pull/1#discussion_r145025836","pull_request_url":"https://api.github.com/repos/xendit/xendit-js-node/pulls/1","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/xendit/xendit-js-node/pulls/comments/145025836"},"html":{"href":"https://github.com/xendit/xendit-js-node/pull/1#discussion_r145025836"},"pull_request":{"href":"https://api.github.com/repos/xendit/xendit-js-node/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/xendit/xendit-js-node/pulls/1","id":146899637,"html_url":"https://github.com/xendit/xendit-js-node/pull/1","diff_url":"https://github.com/xendit/xendit-js-node/pull/1.diff","patch_url":"https://github.com/xendit/xendit-js-node/pull/1.patch","issue_url":"https://api.github.com/repos/xendit/xendit-js-node/issues/1","number":1,"state":"open","locked":false,"title":"Xendit JS for React Native","user":{"login":"PatrickBenz09","id":22156380,"avatar_url":"https://avatars0.githubusercontent.com/u/22156380?v=4","gravatar_id":"","url":"https://api.github.com/users/PatrickBenz09","html_url":"https://github.com/PatrickBenz09","followers_url":"https://api.github.com/users/PatrickBenz09/followers","following_url":"https://api.github.com/users/PatrickBenz09/following{/other_user}","gists_url":"https://api.github.com/users/PatrickBenz09/gists{/gist_id}","starred_url":"https://api.github.com/users/PatrickBenz09/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PatrickBenz09/subscriptions","organizations_url":"https://api.github.com/users/PatrickBenz09/orgs","repos_url":"https://api.github.com/users/PatrickBenz09/repos","events_url":"https://api.github.com/users/PatrickBenz09/events{/privacy}","received_events_url":"https://api.github.com/users/PatrickBenz09/received_events","type":"User","site_admin":false},"body":"## Problem:\r\n* Need to have new xendit.js as a compatible plugin for react-native\r\n\r\n## Solution:\r\n* create it","created_at":"2017-10-16T22:03:46Z","updated_at":"2017-10-17T04:33:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"16b3d90426e93eb874b93efb85d00d8320e6ac92","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/xendit/xendit-js-node/pulls/1/commits","review_comments_url":"https://api.github.com/repos/xendit/xendit-js-node/pulls/1/comments","review_comment_url":"https://api.github.com/repos/xendit/xendit-js-node/pulls/comments{/number}","comments_url":"https://api.github.com/repos/xendit/xendit-js-node/issues/1/comments","statuses_url":"https://api.github.com/repos/xendit/xendit-js-node/statuses/a9aa5ecb51943b712df4457b8c7fae2c7d14d5e8","head":{"label":"xendit:xenditjs-for-native","ref":"xenditjs-for-native","sha":"a9aa5ecb51943b712df4457b8c7fae2c7d14d5e8","user":{"login":"xendit","id":9703405,"avatar_url":"https://avatars3.githubusercontent.com/u/9703405?v=4","gravatar_id":"","url":"https://api.github.com/users/xendit","html_url":"https://github.com/xendit","followers_url":"https://api.github.com/users/xendit/followers","following_url":"https://api.github.com/users/xendit/following{/other_user}","gists_url":"https://api.github.com/users/xendit/gists{/gist_id}","starred_url":"https://api.github.com/users/xendit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xendit/subscriptions","organizations_url":"https://api.github.com/users/xendit/orgs","repos_url":"https://api.github.com/users/xendit/repos","events_url":"https://api.github.com/users/xendit/events{/privacy}","received_events_url":"https://api.github.com/users/xendit/received_events","type":"Organization","site_admin":false},"repo":{"id":107111976,"name":"xendit-js-node","full_name":"xendit/xendit-js-node","owner":{"login":"xendit","id":9703405,"avatar_url":"https://avatars3.githubusercontent.com/u/9703405?v=4","gravatar_id":"","url":"https://api.github.com/users/xendit","html_url":"https://github.com/xendit","followers_url":"https://api.github.com/users/xendit/followers","following_url":"https://api.github.com/users/xendit/following{/other_user}","gists_url":"https://api.github.com/users/xendit/gists{/gist_id}","starred_url":"https://api.github.com/users/xendit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xendit/subscriptions","organizations_url":"https://api.github.com/users/xendit/orgs","repos_url":"https://api.github.com/users/xendit/repos","events_url":"https://api.github.com/users/xendit/events{/privacy}","received_events_url":"https://api.github.com/users/xendit/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/xendit/xendit-js-node","description":null,"fork":false,"url":"https://api.github.com/repos/xendit/xendit-js-node","forks_url":"https://api.github.com/repos/xendit/xendit-js-node/forks","keys_url":"https://api.github.com/repos/xendit/xendit-js-node/keys{/key_id}","collaborators_url":"https://api.github.com/repos/xendit/xendit-js-node/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/xendit/xendit-js-node/teams","hooks_url":"https://api.github.com/repos/xendit/xendit-js-node/hooks","issue_events_url":"https://api.github.com/repos/xendit/xendit-js-node/issues/events{/number}","events_url":"https://api.github.com/repos/xendit/xendit-js-node/events","assignees_url":"https://api.github.com/repos/xendit/xendit-js-node/assignees{/user}","branches_url":"https://api.github.com/repos/xendit/xendit-js-node/branches{/branch}","tags_url":"https://api.github.com/repos/xendit/xendit-js-node/tags","blobs_url":"https://api.github.com/repos/xendit/xendit-js-node/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/xendit/xendit-js-node/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/xendit/xendit-js-node/git/refs{/sha}","trees_url":"https://api.github.com/repos/xendit/xendit-js-node/git/trees{/sha}","statuses_url":"https://api.github.com/repos/xendit/xendit-js-node/statuses/{sha}","languages_url":"https://api.github.com/repos/xendit/xendit-js-node/languages","stargazers_url":"https://api.github.com/repos/xendit/xendit-js-node/stargazers","contributors_url":"https://api.github.com/repos/xendit/xendit-js-node/contributors","subscribers_url":"https://api.github.com/repos/xendit/xendit-js-node/subscribers","subscription_url":"https://api.github.com/repos/xendit/xendit-js-node/subscription","commits_url":"https://api.github.com/repos/xendit/xendit-js-node/commits{/sha}","git_commits_url":"https://api.github.com/repos/xendit/xendit-js-node/git/commits{/sha}","comments_url":"https://api.github.com/repos/xendit/xendit-js-node/comments{/number}","issue_comment_url":"https://api.github.com/repos/xendit/xendit-js-node/issues/comments{/number}","contents_url":"https://api.github.com/repos/xendit/xendit-js-node/contents/{+path}","compare_url":"https://api.github.com/repos/xendit/xendit-js-node/compare/{base}...{head}","merges_url":"https://api.github.com/repos/xendit/xendit-js-node/merges","archive_url":"https://api.github.com/repos/xendit/xendit-js-node/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/xendit/xendit-js-node/downloads","issues_url":"https://api.github.com/repos/xendit/xendit-js-node/issues{/number}","pulls_url":"https://api.github.com/repos/xendit/xendit-js-node/pulls{/number}","milestones_url":"https://api.github.com/repos/xendit/xendit-js-node/milestones{/number}","notifications_url":"https://api.github.com/repos/xendit/xendit-js-node/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/xendit/xendit-js-node/labels{/name}","releases_url":"https://api.github.com/repos/xendit/xendit-js-node/releases{/id}","deployments_url":"https://api.github.com/repos/xendit/xendit-js-node/deployments","created_at":"2017-10-16T10:18:08Z","updated_at":"2017-10-16T10:18:08Z","pushed_at":"2017-10-17T04:30:46Z","git_url":"git://github.com/xendit/xendit-js-node.git","ssh_url":"git@github.com:xendit/xendit-js-node.git","clone_url":"https://github.com/xendit/xendit-js-node.git","svn_url":"https://github.com/xendit/xendit-js-node","homepage":null,"size":30,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"xendit:master","ref":"master","sha":"c8f2e418e36031a80558dc3cc41b93b34431809c","user":{"login":"xendit","id":9703405,"avatar_url":"https://avatars3.githubusercontent.com/u/9703405?v=4","gravatar_id":"","url":"https://api.github.com/users/xendit","html_url":"https://github.com/xendit","followers_url":"https://api.github.com/users/xendit/followers","following_url":"https://api.github.com/users/xendit/following{/other_user}","gists_url":"https://api.github.com/users/xendit/gists{/gist_id}","starred_url":"https://api.github.com/users/xendit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xendit/subscriptions","organizations_url":"https://api.github.com/users/xendit/orgs","repos_url":"https://api.github.com/users/xendit/repos","events_url":"https://api.github.com/users/xendit/events{/privacy}","received_events_url":"https://api.github.com/users/xendit/received_events","type":"Organization","site_admin":false},"repo":{"id":107111976,"name":"xendit-js-node","full_name":"xendit/xendit-js-node","owner":{"login":"xendit","id":9703405,"avatar_url":"https://avatars3.githubusercontent.com/u/9703405?v=4","gravatar_id":"","url":"https://api.github.com/users/xendit","html_url":"https://github.com/xendit","followers_url":"https://api.github.com/users/xendit/followers","following_url":"https://api.github.com/users/xendit/following{/other_user}","gists_url":"https://api.github.com/users/xendit/gists{/gist_id}","starred_url":"https://api.github.com/users/xendit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xendit/subscriptions","organizations_url":"https://api.github.com/users/xendit/orgs","repos_url":"https://api.github.com/users/xendit/repos","events_url":"https://api.github.com/users/xendit/events{/privacy}","received_events_url":"https://api.github.com/users/xendit/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/xendit/xendit-js-node","description":null,"fork":false,"url":"https://api.github.com/repos/xendit/xendit-js-node","forks_url":"https://api.github.com/repos/xendit/xendit-js-node/forks","keys_url":"https://api.github.com/repos/xendit/xendit-js-node/keys{/key_id}","collaborators_url":"https://api.github.com/repos/xendit/xendit-js-node/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/xendit/xendit-js-node/teams","hooks_url":"https://api.github.com/repos/xendit/xendit-js-node/hooks","issue_events_url":"https://api.github.com/repos/xendit/xendit-js-node/issues/events{/number}","events_url":"https://api.github.com/repos/xendit/xendit-js-node/events","assignees_url":"https://api.github.com/repos/xendit/xendit-js-node/assignees{/user}","branches_url":"https://api.github.com/repos/xendit/xendit-js-node/branches{/branch}","tags_url":"https://api.github.com/repos/xendit/xendit-js-node/tags","blobs_url":"https://api.github.com/repos/xendit/xendit-js-node/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/xendit/xendit-js-node/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/xendit/xendit-js-node/git/refs{/sha}","trees_url":"https://api.github.com/repos/xendit/xendit-js-node/git/trees{/sha}","statuses_url":"https://api.github.com/repos/xendit/xendit-js-node/statuses/{sha}","languages_url":"https://api.github.com/repos/xendit/xendit-js-node/languages","stargazers_url":"https://api.github.com/repos/xendit/xendit-js-node/stargazers","contributors_url":"https://api.github.com/repos/xendit/xendit-js-node/contributors","subscribers_url":"https://api.github.com/repos/xendit/xendit-js-node/subscribers","subscription_url":"https://api.github.com/repos/xendit/xendit-js-node/subscription","commits_url":"https://api.github.com/repos/xendit/xendit-js-node/commits{/sha}","git_commits_url":"https://api.github.com/repos/xendit/xendit-js-node/git/commits{/sha}","comments_url":"https://api.github.com/repos/xendit/xendit-js-node/comments{/number}","issue_comment_url":"https://api.github.com/repos/xendit/xendit-js-node/issues/comments{/number}","contents_url":"https://api.github.com/repos/xendit/xendit-js-node/contents/{+path}","compare_url":"https://api.github.com/repos/xendit/xendit-js-node/compare/{base}...{head}","merges_url":"https://api.github.com/repos/xendit/xendit-js-node/merges","archive_url":"https://api.github.com/repos/xendit/xendit-js-node/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/xendit/xendit-js-node/downloads","issues_url":"https://api.github.com/repos/xendit/xendit-js-node/issues{/number}","pulls_url":"https://api.github.com/repos/xendit/xendit-js-node/pulls{/number}","milestones_url":"https://api.github.com/repos/xendit/xendit-js-node/milestones{/number}","notifications_url":"https://api.github.com/repos/xendit/xendit-js-node/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/xendit/xendit-js-node/labels{/name}","releases_url":"https://api.github.com/repos/xendit/xendit-js-node/releases{/id}","deployments_url":"https://api.github.com/repos/xendit/xendit-js-node/deployments","created_at":"2017-10-16T10:18:08Z","updated_at":"2017-10-16T10:18:08Z","pushed_at":"2017-10-17T04:30:46Z","git_url":"git://github.com/xendit/xendit-js-node.git","ssh_url":"git@github.com:xendit/xendit-js-node.git","clone_url":"https://github.com/xendit/xendit-js-node.git","svn_url":"https://github.com/xendit/xendit-js-node","homepage":null,"size":30,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/xendit/xendit-js-node/pulls/1"},"html":{"href":"https://github.com/xendit/xendit-js-node/pull/1"},"issue":{"href":"https://api.github.com/repos/xendit/xendit-js-node/issues/1"},"comments":{"href":"https://api.github.com/repos/xendit/xendit-js-node/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/xendit/xendit-js-node/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/xendit/xendit-js-node/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/xendit/xendit-js-node/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/xendit/xendit-js-node/statuses/a9aa5ecb51943b712df4457b8c7fae2c7d14d5e8"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"afik"}}