{"action":"created","comment":{"url":"https://api.github.com/repos/zalando-incubator/atlas-ios/pulls/comments/76227352","id":76227352,"diff_hunk":"@@ -45,7 +45,23 @@ internal final class PaymentProcessingViewController: UIViewController, Checkout\n                 UserMessage.showOK(title: self.loc(\"Fatal Error\"), message: String(error))\n             case .success(let order):\n                 print(order)\n-                self.showSuccessImage()\n+                guard let paymentURL = order.externalPaymentUrl else {\n+                    self.showSuccessImage()\n+                    return\n+                }\n+                let paymentSelectionViewController = PaymentSelectionViewController(paymentSelectionURL: paymentURL)\n+                paymentSelectionViewController.paymentCompletion = { _ in\n+                    self.showSuccessImage()\n+                }\n+\n+                guard let sourceApp = UIApplication.topViewController() else { return }\n+\n+                let navigationController = UINavigationController(rootViewController: paymentSelectionViewController)\n+                dispatch_async(dispatch_get_main_queue()) {\n+                    navigationController.modalPresentationStyle = .OverCurrentContext\n+                    sourceApp.navigationController?.presentViewController(navigationController, animated: true, completion: nil)","path":"AtlasUI/AtlasUI/PaymentProcessingViewController.swift","position":19,"original_position":19,"commit_id":"c0a198a23300cba6021db98b42247fc50da3de11","original_commit_id":"c0a198a23300cba6021db98b42247fc50da3de11","user":{"login":"ahmed-shehata","id":4982099,"avatar_url":"https://avatars.githubusercontent.com/u/4982099?v=3","gravatar_id":"","url":"https://api.github.com/users/ahmed-shehata","html_url":"https://github.com/ahmed-shehata","followers_url":"https://api.github.com/users/ahmed-shehata/followers","following_url":"https://api.github.com/users/ahmed-shehata/following{/other_user}","gists_url":"https://api.github.com/users/ahmed-shehata/gists{/gist_id}","starred_url":"https://api.github.com/users/ahmed-shehata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahmed-shehata/subscriptions","organizations_url":"https://api.github.com/users/ahmed-shehata/orgs","repos_url":"https://api.github.com/users/ahmed-shehata/repos","events_url":"https://api.github.com/users/ahmed-shehata/events{/privacy}","received_events_url":"https://api.github.com/users/ahmed-shehata/received_events","type":"User","site_admin":false},"body":"\"?\" optional","created_at":"2016-08-25T11:41:22Z","updated_at":"2016-08-25T11:41:22Z","html_url":"https://github.com/zalando-incubator/atlas-ios/pull/160#discussion_r76227352","pull_request_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/pulls/160","_links":{"self":{"href":"https://api.github.com/repos/zalando-incubator/atlas-ios/pulls/comments/76227352"},"html":{"href":"https://github.com/zalando-incubator/atlas-ios/pull/160#discussion_r76227352"},"pull_request":{"href":"https://api.github.com/repos/zalando-incubator/atlas-ios/pulls/160"}}},"pull_request":{"url":"https://api.github.com/repos/zalando-incubator/atlas-ios/pulls/160","id":82617326,"html_url":"https://github.com/zalando-incubator/atlas-ios/pull/160","diff_url":"https://github.com/zalando-incubator/atlas-ios/pull/160.diff","patch_url":"https://github.com/zalando-incubator/atlas-ios/pull/160.patch","issue_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/issues/160","number":160,"state":"open","locked":false,"title":"Added payment confirmation screen","user":{"login":"ahmed-shehata","id":4982099,"avatar_url":"https://avatars.githubusercontent.com/u/4982099?v=3","gravatar_id":"","url":"https://api.github.com/users/ahmed-shehata","html_url":"https://github.com/ahmed-shehata","followers_url":"https://api.github.com/users/ahmed-shehata/followers","following_url":"https://api.github.com/users/ahmed-shehata/following{/other_user}","gists_url":"https://api.github.com/users/ahmed-shehata/gists{/gist_id}","starred_url":"https://api.github.com/users/ahmed-shehata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahmed-shehata/subscriptions","organizations_url":"https://api.github.com/users/ahmed-shehata/orgs","repos_url":"https://api.github.com/users/ahmed-shehata/repos","events_url":"https://api.github.com/users/ahmed-shehata/events{/privacy}","received_events_url":"https://api.github.com/users/ahmed-shehata/received_events","type":"User","site_admin":false},"body":"Added payment confirmation screen (tested on Paypal)","created_at":"2016-08-24T21:05:17Z","updated_at":"2016-08-25T11:41:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e764e754053d3ea8f8bbe67e99b207fb69d711e3","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/pulls/160/commits","review_comments_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/pulls/160/comments","review_comment_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/pulls/comments{/number}","comments_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/issues/160/comments","statuses_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/statuses/c0a198a23300cba6021db98b42247fc50da3de11","head":{"label":"zalando-incubator:issue-156","ref":"issue-156","sha":"c0a198a23300cba6021db98b42247fc50da3de11","user":{"login":"zalando-incubator","id":18533786,"avatar_url":"https://avatars.githubusercontent.com/u/18533786?v=3","gravatar_id":"","url":"https://api.github.com/users/zalando-incubator","html_url":"https://github.com/zalando-incubator","followers_url":"https://api.github.com/users/zalando-incubator/followers","following_url":"https://api.github.com/users/zalando-incubator/following{/other_user}","gists_url":"https://api.github.com/users/zalando-incubator/gists{/gist_id}","starred_url":"https://api.github.com/users/zalando-incubator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zalando-incubator/subscriptions","organizations_url":"https://api.github.com/users/zalando-incubator/orgs","repos_url":"https://api.github.com/users/zalando-incubator/repos","events_url":"https://api.github.com/users/zalando-incubator/events{/privacy}","received_events_url":"https://api.github.com/users/zalando-incubator/received_events","type":"Organization","site_admin":false},"repo":{"id":64761185,"name":"atlas-ios","full_name":"zalando-incubator/atlas-ios","owner":{"login":"zalando-incubator","id":18533786,"avatar_url":"https://avatars.githubusercontent.com/u/18533786?v=3","gravatar_id":"","url":"https://api.github.com/users/zalando-incubator","html_url":"https://github.com/zalando-incubator","followers_url":"https://api.github.com/users/zalando-incubator/followers","following_url":"https://api.github.com/users/zalando-incubator/following{/other_user}","gists_url":"https://api.github.com/users/zalando-incubator/gists{/gist_id}","starred_url":"https://api.github.com/users/zalando-incubator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zalando-incubator/subscriptions","organizations_url":"https://api.github.com/users/zalando-incubator/orgs","repos_url":"https://api.github.com/users/zalando-incubator/repos","events_url":"https://api.github.com/users/zalando-incubator/events{/privacy}","received_events_url":"https://api.github.com/users/zalando-incubator/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/zalando-incubator/atlas-ios","description":"Atlas iOS SDK for Zalando Checkout and Catalog APIs.","fork":false,"url":"https://api.github.com/repos/zalando-incubator/atlas-ios","forks_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/forks","keys_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/teams","hooks_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/hooks","issue_events_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/issues/events{/number}","events_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/events","assignees_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/assignees{/user}","branches_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/branches{/branch}","tags_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/tags","blobs_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/git/refs{/sha}","trees_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/statuses/{sha}","languages_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/languages","stargazers_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/stargazers","contributors_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/contributors","subscribers_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/subscribers","subscription_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/subscription","commits_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/commits{/sha}","git_commits_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/git/commits{/sha}","comments_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/comments{/number}","issue_comment_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/issues/comments{/number}","contents_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/contents/{+path}","compare_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/merges","archive_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/downloads","issues_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/issues{/number}","pulls_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/pulls{/number}","milestones_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/milestones{/number}","notifications_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/labels{/name}","releases_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/releases{/id}","deployments_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/deployments","created_at":"2016-08-02T13:55:33Z","updated_at":"2016-08-15T11:59:56Z","pushed_at":"2016-08-25T10:32:32Z","git_url":"git://github.com/zalando-incubator/atlas-ios.git","ssh_url":"git@github.com:zalando-incubator/atlas-ios.git","clone_url":"https://github.com/zalando-incubator/atlas-ios.git","svn_url":"https://github.com/zalando-incubator/atlas-ios","homepage":"","size":84511,"stargazers_count":11,"watchers_count":11,"language":"Swift","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":54,"forks":0,"open_issues":54,"watchers":11,"default_branch":"master"}},"base":{"label":"zalando-incubator:master","ref":"master","sha":"113ed945f5f6a78726cee7c1e27a36f2b0262699","user":{"login":"zalando-incubator","id":18533786,"avatar_url":"https://avatars.githubusercontent.com/u/18533786?v=3","gravatar_id":"","url":"https://api.github.com/users/zalando-incubator","html_url":"https://github.com/zalando-incubator","followers_url":"https://api.github.com/users/zalando-incubator/followers","following_url":"https://api.github.com/users/zalando-incubator/following{/other_user}","gists_url":"https://api.github.com/users/zalando-incubator/gists{/gist_id}","starred_url":"https://api.github.com/users/zalando-incubator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zalando-incubator/subscriptions","organizations_url":"https://api.github.com/users/zalando-incubator/orgs","repos_url":"https://api.github.com/users/zalando-incubator/repos","events_url":"https://api.github.com/users/zalando-incubator/events{/privacy}","received_events_url":"https://api.github.com/users/zalando-incubator/received_events","type":"Organization","site_admin":false},"repo":{"id":64761185,"name":"atlas-ios","full_name":"zalando-incubator/atlas-ios","owner":{"login":"zalando-incubator","id":18533786,"avatar_url":"https://avatars.githubusercontent.com/u/18533786?v=3","gravatar_id":"","url":"https://api.github.com/users/zalando-incubator","html_url":"https://github.com/zalando-incubator","followers_url":"https://api.github.com/users/zalando-incubator/followers","following_url":"https://api.github.com/users/zalando-incubator/following{/other_user}","gists_url":"https://api.github.com/users/zalando-incubator/gists{/gist_id}","starred_url":"https://api.github.com/users/zalando-incubator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zalando-incubator/subscriptions","organizations_url":"https://api.github.com/users/zalando-incubator/orgs","repos_url":"https://api.github.com/users/zalando-incubator/repos","events_url":"https://api.github.com/users/zalando-incubator/events{/privacy}","received_events_url":"https://api.github.com/users/zalando-incubator/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/zalando-incubator/atlas-ios","description":"Atlas iOS SDK for Zalando Checkout and Catalog APIs.","fork":false,"url":"https://api.github.com/repos/zalando-incubator/atlas-ios","forks_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/forks","keys_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/teams","hooks_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/hooks","issue_events_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/issues/events{/number}","events_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/events","assignees_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/assignees{/user}","branches_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/branches{/branch}","tags_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/tags","blobs_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/git/refs{/sha}","trees_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/statuses/{sha}","languages_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/languages","stargazers_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/stargazers","contributors_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/contributors","subscribers_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/subscribers","subscription_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/subscription","commits_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/commits{/sha}","git_commits_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/git/commits{/sha}","comments_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/comments{/number}","issue_comment_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/issues/comments{/number}","contents_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/contents/{+path}","compare_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/merges","archive_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/downloads","issues_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/issues{/number}","pulls_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/pulls{/number}","milestones_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/milestones{/number}","notifications_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/labels{/name}","releases_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/releases{/id}","deployments_url":"https://api.github.com/repos/zalando-incubator/atlas-ios/deployments","created_at":"2016-08-02T13:55:33Z","updated_at":"2016-08-15T11:59:56Z","pushed_at":"2016-08-25T10:32:32Z","git_url":"git://github.com/zalando-incubator/atlas-ios.git","ssh_url":"git@github.com:zalando-incubator/atlas-ios.git","clone_url":"https://github.com/zalando-incubator/atlas-ios.git","svn_url":"https://github.com/zalando-incubator/atlas-ios","homepage":"","size":84511,"stargazers_count":11,"watchers_count":11,"language":"Swift","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":54,"forks":0,"open_issues":54,"watchers":11,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/zalando-incubator/atlas-ios/pulls/160"},"html":{"href":"https://github.com/zalando-incubator/atlas-ios/pull/160"},"issue":{"href":"https://api.github.com/repos/zalando-incubator/atlas-ios/issues/160"},"comments":{"href":"https://api.github.com/repos/zalando-incubator/atlas-ios/issues/160/comments"},"review_comments":{"href":"https://api.github.com/repos/zalando-incubator/atlas-ios/pulls/160/comments"},"review_comment":{"href":"https://api.github.com/repos/zalando-incubator/atlas-ios/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/zalando-incubator/atlas-ios/pulls/160/commits"},"statuses":{"href":"https://api.github.com/repos/zalando-incubator/atlas-ios/statuses/c0a198a23300cba6021db98b42247fc50da3de11"}}}}
{"actor":{"display_login":"ahmed-shehata"}}