{"action":"created","comment":{"url":"https://api.github.com/repos/dwarvesf/delivr-web/pulls/comments/72982764","id":72982764,"diff_hunk":"@@ -20,3 +20,9 @@ config :delivr,\n \n config :sendgrid,\n   api_key: System.get_env(\"SENDGRID_API_KEY\")\n+\n+config :delivr,\n+  stripe_key: System.get_env(\"STRIPE_PUBLIC_KEY\")\n+\n+config :delivr,\n+  stripe_private_key: System.get_env(\"STRIPE_PRIVATE_KEY\")","path":"config/test.exs","position":9,"original_position":9,"commit_id":"a3e0986c1af0a1fefb8ef63215324d455de9e351","original_commit_id":"a3e0986c1af0a1fefb8ef63215324d455de9e351","user":{"login":"hieuphq","id":13938010,"avatar_url":"https://avatars.githubusercontent.com/u/13938010?v=3","gravatar_id":"","url":"https://api.github.com/users/hieuphq","html_url":"https://github.com/hieuphq","followers_url":"https://api.github.com/users/hieuphq/followers","following_url":"https://api.github.com/users/hieuphq/following{/other_user}","gists_url":"https://api.github.com/users/hieuphq/gists{/gist_id}","starred_url":"https://api.github.com/users/hieuphq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hieuphq/subscriptions","organizations_url":"https://api.github.com/users/hieuphq/orgs","repos_url":"https://api.github.com/users/hieuphq/repos","events_url":"https://api.github.com/users/hieuphq/events{/privacy}","received_events_url":"https://api.github.com/users/hieuphq/received_events","type":"User","site_admin":false},"body":"+config :delivr,\r\n +  currency_convert_key: System.get_env(\"CURRENCY_CONVERT_KEY\")","created_at":"2016-08-01T14:04:18Z","updated_at":"2016-08-01T14:04:18Z","html_url":"https://github.com/dwarvesf/delivr-web/pull/7#discussion_r72982764","pull_request_url":"https://api.github.com/repos/dwarvesf/delivr-web/pulls/7","_links":{"self":{"href":"https://api.github.com/repos/dwarvesf/delivr-web/pulls/comments/72982764"},"html":{"href":"https://github.com/dwarvesf/delivr-web/pull/7#discussion_r72982764"},"pull_request":{"href":"https://api.github.com/repos/dwarvesf/delivr-web/pulls/7"}}},"pull_request":{"url":"https://api.github.com/repos/dwarvesf/delivr-web/pulls/7","id":79011734,"html_url":"https://github.com/dwarvesf/delivr-web/pull/7","diff_url":"https://github.com/dwarvesf/delivr-web/pull/7.diff","patch_url":"https://github.com/dwarvesf/delivr-web/pull/7.patch","issue_url":"https://api.github.com/repos/dwarvesf/delivr-web/issues/7","number":7,"state":"open","locked":false,"title":"Make page help user pay after receive quotation email","user":{"login":"thminhVN","id":11255278,"avatar_url":"https://avatars.githubusercontent.com/u/11255278?v=3","gravatar_id":"","url":"https://api.github.com/users/thminhVN","html_url":"https://github.com/thminhVN","followers_url":"https://api.github.com/users/thminhVN/followers","following_url":"https://api.github.com/users/thminhVN/following{/other_user}","gists_url":"https://api.github.com/users/thminhVN/gists{/gist_id}","starred_url":"https://api.github.com/users/thminhVN/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thminhVN/subscriptions","organizations_url":"https://api.github.com/users/thminhVN/orgs","repos_url":"https://api.github.com/users/thminhVN/repos","events_url":"https://api.github.com/users/thminhVN/events{/privacy}","received_events_url":"https://api.github.com/users/thminhVN/received_events","type":"User","site_admin":false},"body":"<!--\r\n# Title\r\n- Put [WIP] in front of the Pull Request that you are working on\r\n- Clear [WIP] after you completed and ping the reviewer\r\n\r\n# Body\r\n- You have to fill out all the sections\r\n- Put N/A if the section is nil\r\n- Example: https://github.com/payfriendz/messaging/pull/37\r\n-->\r\n\r\n#### Status\r\n\r\nREADY\r\n\r\n#### What's this PR do?\r\n\r\n- [x] Create payment UI \r\n- [x] Get order detail (include order item) by code\r\n- [x] Integrate Stripe\r\n- [x] Show alert to user when their order is not in status \"Chờ đặt cọc\"\r\n- [x] Show alert to user when they put wrong code\r\n- [x] Show alert after people input correct card number\r\n\r\n#### Where should the reviewer start?\r\nGo to url /payment?code={order_code} to see a detail\r\nClick to stripe button to try Stripe payment gateway\r\n\r\n#### How should this be manually tested?\r\nFind order code in your local database change status to 4\r\n\r\n#### Any background context you want to provide?\r\nuse this API to convert [https://currencylayer.com/](https://currencylayer.com/)\r\n#### What are the relevant Git/YouTrack tickets?\r\n\r\n// Put in link to Git Issue or YouTrack ticket\r\n\r\n#### Screenshots (if appropriate)\r\n![payment-collapsed-page](https://cloud.githubusercontent.com/assets/11255278/17191734/8a9a19b0-5475-11e6-8b49-a73cefdcc9a1.png)\r\n![payment_page](https://cloud.githubusercontent.com/assets/11255278/17191739/8ce923dc-5475-11e6-864a-edc635b8b39c.png)\r\n\r\n#### Questions:\r\n\r\n- Is there a blog post?\r\n- Does the knowledge base need an update?\r\n- Does this add new dependencies which need to be added to?\r\n\r\n","created_at":"2016-07-27T12:01:34Z","updated_at":"2016-08-01T14:04:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"13854e54a65fa26c5e9b56b627ac553747284319","assignee":{"login":"tieubao","id":1749624,"avatar_url":"https://avatars.githubusercontent.com/u/1749624?v=3","gravatar_id":"","url":"https://api.github.com/users/tieubao","html_url":"https://github.com/tieubao","followers_url":"https://api.github.com/users/tieubao/followers","following_url":"https://api.github.com/users/tieubao/following{/other_user}","gists_url":"https://api.github.com/users/tieubao/gists{/gist_id}","starred_url":"https://api.github.com/users/tieubao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tieubao/subscriptions","organizations_url":"https://api.github.com/users/tieubao/orgs","repos_url":"https://api.github.com/users/tieubao/repos","events_url":"https://api.github.com/users/tieubao/events{/privacy}","received_events_url":"https://api.github.com/users/tieubao/received_events","type":"User","site_admin":false},"assignees":[{"login":"tieubao","id":1749624,"avatar_url":"https://avatars.githubusercontent.com/u/1749624?v=3","gravatar_id":"","url":"https://api.github.com/users/tieubao","html_url":"https://github.com/tieubao","followers_url":"https://api.github.com/users/tieubao/followers","following_url":"https://api.github.com/users/tieubao/following{/other_user}","gists_url":"https://api.github.com/users/tieubao/gists{/gist_id}","starred_url":"https://api.github.com/users/tieubao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tieubao/subscriptions","organizations_url":"https://api.github.com/users/tieubao/orgs","repos_url":"https://api.github.com/users/tieubao/repos","events_url":"https://api.github.com/users/tieubao/events{/privacy}","received_events_url":"https://api.github.com/users/tieubao/received_events","type":"User","site_admin":false},{"login":"hieuphq","id":13938010,"avatar_url":"https://avatars.githubusercontent.com/u/13938010?v=3","gravatar_id":"","url":"https://api.github.com/users/hieuphq","html_url":"https://github.com/hieuphq","followers_url":"https://api.github.com/users/hieuphq/followers","following_url":"https://api.github.com/users/hieuphq/following{/other_user}","gists_url":"https://api.github.com/users/hieuphq/gists{/gist_id}","starred_url":"https://api.github.com/users/hieuphq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hieuphq/subscriptions","organizations_url":"https://api.github.com/users/hieuphq/orgs","repos_url":"https://api.github.com/users/hieuphq/repos","events_url":"https://api.github.com/users/hieuphq/events{/privacy}","received_events_url":"https://api.github.com/users/hieuphq/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/dwarvesf/delivr-web/pulls/7/commits","review_comments_url":"https://api.github.com/repos/dwarvesf/delivr-web/pulls/7/comments","review_comment_url":"https://api.github.com/repos/dwarvesf/delivr-web/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dwarvesf/delivr-web/issues/7/comments","statuses_url":"https://api.github.com/repos/dwarvesf/delivr-web/statuses/a3e0986c1af0a1fefb8ef63215324d455de9e351","head":{"label":"dwarvesf:feature/payment","ref":"feature/payment","sha":"a3e0986c1af0a1fefb8ef63215324d455de9e351","user":{"login":"dwarvesf","id":10388449,"avatar_url":"https://avatars.githubusercontent.com/u/10388449?v=3","gravatar_id":"","url":"https://api.github.com/users/dwarvesf","html_url":"https://github.com/dwarvesf","followers_url":"https://api.github.com/users/dwarvesf/followers","following_url":"https://api.github.com/users/dwarvesf/following{/other_user}","gists_url":"https://api.github.com/users/dwarvesf/gists{/gist_id}","starred_url":"https://api.github.com/users/dwarvesf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dwarvesf/subscriptions","organizations_url":"https://api.github.com/users/dwarvesf/orgs","repos_url":"https://api.github.com/users/dwarvesf/repos","events_url":"https://api.github.com/users/dwarvesf/events{/privacy}","received_events_url":"https://api.github.com/users/dwarvesf/received_events","type":"Organization","site_admin":false},"repo":{"id":62709898,"name":"delivr-web","full_name":"dwarvesf/delivr-web","owner":{"login":"dwarvesf","id":10388449,"avatar_url":"https://avatars.githubusercontent.com/u/10388449?v=3","gravatar_id":"","url":"https://api.github.com/users/dwarvesf","html_url":"https://github.com/dwarvesf","followers_url":"https://api.github.com/users/dwarvesf/followers","following_url":"https://api.github.com/users/dwarvesf/following{/other_user}","gists_url":"https://api.github.com/users/dwarvesf/gists{/gist_id}","starred_url":"https://api.github.com/users/dwarvesf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dwarvesf/subscriptions","organizations_url":"https://api.github.com/users/dwarvesf/orgs","repos_url":"https://api.github.com/users/dwarvesf/repos","events_url":"https://api.github.com/users/dwarvesf/events{/privacy}","received_events_url":"https://api.github.com/users/dwarvesf/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/dwarvesf/delivr-web","description":null,"fork":false,"url":"https://api.github.com/repos/dwarvesf/delivr-web","forks_url":"https://api.github.com/repos/dwarvesf/delivr-web/forks","keys_url":"https://api.github.com/repos/dwarvesf/delivr-web/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dwarvesf/delivr-web/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dwarvesf/delivr-web/teams","hooks_url":"https://api.github.com/repos/dwarvesf/delivr-web/hooks","issue_events_url":"https://api.github.com/repos/dwarvesf/delivr-web/issues/events{/number}","events_url":"https://api.github.com/repos/dwarvesf/delivr-web/events","assignees_url":"https://api.github.com/repos/dwarvesf/delivr-web/assignees{/user}","branches_url":"https://api.github.com/repos/dwarvesf/delivr-web/branches{/branch}","tags_url":"https://api.github.com/repos/dwarvesf/delivr-web/tags","blobs_url":"https://api.github.com/repos/dwarvesf/delivr-web/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dwarvesf/delivr-web/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dwarvesf/delivr-web/git/refs{/sha}","trees_url":"https://api.github.com/repos/dwarvesf/delivr-web/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dwarvesf/delivr-web/statuses/{sha}","languages_url":"https://api.github.com/repos/dwarvesf/delivr-web/languages","stargazers_url":"https://api.github.com/repos/dwarvesf/delivr-web/stargazers","contributors_url":"https://api.github.com/repos/dwarvesf/delivr-web/contributors","subscribers_url":"https://api.github.com/repos/dwarvesf/delivr-web/subscribers","subscription_url":"https://api.github.com/repos/dwarvesf/delivr-web/subscription","commits_url":"https://api.github.com/repos/dwarvesf/delivr-web/commits{/sha}","git_commits_url":"https://api.github.com/repos/dwarvesf/delivr-web/git/commits{/sha}","comments_url":"https://api.github.com/repos/dwarvesf/delivr-web/comments{/number}","issue_comment_url":"https://api.github.com/repos/dwarvesf/delivr-web/issues/comments{/number}","contents_url":"https://api.github.com/repos/dwarvesf/delivr-web/contents/{+path}","compare_url":"https://api.github.com/repos/dwarvesf/delivr-web/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dwarvesf/delivr-web/merges","archive_url":"https://api.github.com/repos/dwarvesf/delivr-web/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dwarvesf/delivr-web/downloads","issues_url":"https://api.github.com/repos/dwarvesf/delivr-web/issues{/number}","pulls_url":"https://api.github.com/repos/dwarvesf/delivr-web/pulls{/number}","milestones_url":"https://api.github.com/repos/dwarvesf/delivr-web/milestones{/number}","notifications_url":"https://api.github.com/repos/dwarvesf/delivr-web/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dwarvesf/delivr-web/labels{/name}","releases_url":"https://api.github.com/repos/dwarvesf/delivr-web/releases{/id}","deployments_url":"https://api.github.com/repos/dwarvesf/delivr-web/deployments","created_at":"2016-07-06T09:44:34Z","updated_at":"2016-07-20T16:00:13Z","pushed_at":"2016-08-01T13:52:01Z","git_url":"git://github.com/dwarvesf/delivr-web.git","ssh_url":"git@github.com:dwarvesf/delivr-web.git","clone_url":"https://github.com/dwarvesf/delivr-web.git","svn_url":"https://github.com/dwarvesf/delivr-web","homepage":null,"size":2834,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"develop"}},"base":{"label":"dwarvesf:develop","ref":"develop","sha":"7a4062bc00ddc595d3a6fdab5288849aba0814cc","user":{"login":"dwarvesf","id":10388449,"avatar_url":"https://avatars.githubusercontent.com/u/10388449?v=3","gravatar_id":"","url":"https://api.github.com/users/dwarvesf","html_url":"https://github.com/dwarvesf","followers_url":"https://api.github.com/users/dwarvesf/followers","following_url":"https://api.github.com/users/dwarvesf/following{/other_user}","gists_url":"https://api.github.com/users/dwarvesf/gists{/gist_id}","starred_url":"https://api.github.com/users/dwarvesf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dwarvesf/subscriptions","organizations_url":"https://api.github.com/users/dwarvesf/orgs","repos_url":"https://api.github.com/users/dwarvesf/repos","events_url":"https://api.github.com/users/dwarvesf/events{/privacy}","received_events_url":"https://api.github.com/users/dwarvesf/received_events","type":"Organization","site_admin":false},"repo":{"id":62709898,"name":"delivr-web","full_name":"dwarvesf/delivr-web","owner":{"login":"dwarvesf","id":10388449,"avatar_url":"https://avatars.githubusercontent.com/u/10388449?v=3","gravatar_id":"","url":"https://api.github.com/users/dwarvesf","html_url":"https://github.com/dwarvesf","followers_url":"https://api.github.com/users/dwarvesf/followers","following_url":"https://api.github.com/users/dwarvesf/following{/other_user}","gists_url":"https://api.github.com/users/dwarvesf/gists{/gist_id}","starred_url":"https://api.github.com/users/dwarvesf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dwarvesf/subscriptions","organizations_url":"https://api.github.com/users/dwarvesf/orgs","repos_url":"https://api.github.com/users/dwarvesf/repos","events_url":"https://api.github.com/users/dwarvesf/events{/privacy}","received_events_url":"https://api.github.com/users/dwarvesf/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/dwarvesf/delivr-web","description":null,"fork":false,"url":"https://api.github.com/repos/dwarvesf/delivr-web","forks_url":"https://api.github.com/repos/dwarvesf/delivr-web/forks","keys_url":"https://api.github.com/repos/dwarvesf/delivr-web/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dwarvesf/delivr-web/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dwarvesf/delivr-web/teams","hooks_url":"https://api.github.com/repos/dwarvesf/delivr-web/hooks","issue_events_url":"https://api.github.com/repos/dwarvesf/delivr-web/issues/events{/number}","events_url":"https://api.github.com/repos/dwarvesf/delivr-web/events","assignees_url":"https://api.github.com/repos/dwarvesf/delivr-web/assignees{/user}","branches_url":"https://api.github.com/repos/dwarvesf/delivr-web/branches{/branch}","tags_url":"https://api.github.com/repos/dwarvesf/delivr-web/tags","blobs_url":"https://api.github.com/repos/dwarvesf/delivr-web/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dwarvesf/delivr-web/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dwarvesf/delivr-web/git/refs{/sha}","trees_url":"https://api.github.com/repos/dwarvesf/delivr-web/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dwarvesf/delivr-web/statuses/{sha}","languages_url":"https://api.github.com/repos/dwarvesf/delivr-web/languages","stargazers_url":"https://api.github.com/repos/dwarvesf/delivr-web/stargazers","contributors_url":"https://api.github.com/repos/dwarvesf/delivr-web/contributors","subscribers_url":"https://api.github.com/repos/dwarvesf/delivr-web/subscribers","subscription_url":"https://api.github.com/repos/dwarvesf/delivr-web/subscription","commits_url":"https://api.github.com/repos/dwarvesf/delivr-web/commits{/sha}","git_commits_url":"https://api.github.com/repos/dwarvesf/delivr-web/git/commits{/sha}","comments_url":"https://api.github.com/repos/dwarvesf/delivr-web/comments{/number}","issue_comment_url":"https://api.github.com/repos/dwarvesf/delivr-web/issues/comments{/number}","contents_url":"https://api.github.com/repos/dwarvesf/delivr-web/contents/{+path}","compare_url":"https://api.github.com/repos/dwarvesf/delivr-web/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dwarvesf/delivr-web/merges","archive_url":"https://api.github.com/repos/dwarvesf/delivr-web/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dwarvesf/delivr-web/downloads","issues_url":"https://api.github.com/repos/dwarvesf/delivr-web/issues{/number}","pulls_url":"https://api.github.com/repos/dwarvesf/delivr-web/pulls{/number}","milestones_url":"https://api.github.com/repos/dwarvesf/delivr-web/milestones{/number}","notifications_url":"https://api.github.com/repos/dwarvesf/delivr-web/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dwarvesf/delivr-web/labels{/name}","releases_url":"https://api.github.com/repos/dwarvesf/delivr-web/releases{/id}","deployments_url":"https://api.github.com/repos/dwarvesf/delivr-web/deployments","created_at":"2016-07-06T09:44:34Z","updated_at":"2016-07-20T16:00:13Z","pushed_at":"2016-08-01T13:52:01Z","git_url":"git://github.com/dwarvesf/delivr-web.git","ssh_url":"git@github.com:dwarvesf/delivr-web.git","clone_url":"https://github.com/dwarvesf/delivr-web.git","svn_url":"https://github.com/dwarvesf/delivr-web","homepage":null,"size":2834,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/dwarvesf/delivr-web/pulls/7"},"html":{"href":"https://github.com/dwarvesf/delivr-web/pull/7"},"issue":{"href":"https://api.github.com/repos/dwarvesf/delivr-web/issues/7"},"comments":{"href":"https://api.github.com/repos/dwarvesf/delivr-web/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/dwarvesf/delivr-web/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/dwarvesf/delivr-web/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dwarvesf/delivr-web/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/dwarvesf/delivr-web/statuses/a3e0986c1af0a1fefb8ef63215324d455de9e351"}}}}
{"actor":{"display_login":"hieuphq"}}