{"action":"created","comment":{"url":"https://api.github.com/repos/Markette/Gopay/pulls/comments/41615015","id":41615015,"diff_hunk":"@@ -166,21 +166,59 @@ $storeIdCallback = function ($paymentId) use ($order) {\n };\n ```\n \n-A nakonec s platbou zaplatíte :) (takto, druhý parametr je platební kanál,\n-kterým má být platba uskutečněna):\n+Samotné placení lze provést dvěma způsobama. \n+\n+První je\n+\n+#### Redirectnutí\n+\n+Toho docílíte, tím že zavoláte funkci `pay()`.\n \n ```php\n-$response = $gopay->pay($payment, $gopay::METHOD_TRANSFER, $storeIdCallback);\n+$response = $gopay->pay($payment, $gopay::METHOD_TRANSFER, $storeIdCallback, $gopay::PAYMENT_REDIRECT);\n ```\n \n-Akce `pay()` vrátí `Response` objekt, který aplikaci přesměruje na platební\n-bránu Gopay.\n+Akce `pay()` vrátí `Response` objekt.\n \n ```php\n $this->sendResponse($response);\n ```\n \n-V okamžiku zavolání `pay()` se mohou pokazit dvě věci:\n+Druhý způsob je \n+\n+#### Nová INLINE brána\n+\n+Toho docílíte, tím že zavoláte funkci `payInline()`.\n+\n+```php\n+$response = $gopay->payInline($payment, $gopay::METHOD_TRANSFER, $storeIdCallback);\n+```\n+\n+Akce `payInline()` vám vrátí pole podobné tomuto\n+\n+```php\n+[ \n+    \"url\" => \"https://gate.gopay.cz/gw/v3/3100000099\",\n+    \"signature\" => \"25ee53a1ec­cc253a8310f5267d2de6b483f58a­f9676d883e26600ce3316ai\"\n+];\n+```\n+\n+Což Vám vrátí vše potřebné k implementaci nové Inline platební brány. \n+\n+A platební bránu je možné vytvořit pomocí formuláře, který najdete v [dokumentaci!](https://help.gopay.com/cs/tema/integrace-platebni-brany/integrace-nova-platebni-brany/integrace-nove-platebni-brany-pro-stavajici-zakazniky)","path":"README.md","position":49,"original_position":49,"commit_id":"129bbb63638001f77754742c1f36505cc4c53227","original_commit_id":"129bbb63638001f77754742c1f36505cc4c53227","user":{"login":"f3l1x","id":538058,"avatar_url":"https://avatars.githubusercontent.com/u/538058?v=3","gravatar_id":"","url":"https://api.github.com/users/f3l1x","html_url":"https://github.com/f3l1x","followers_url":"https://api.github.com/users/f3l1x/followers","following_url":"https://api.github.com/users/f3l1x/following{/other_user}","gists_url":"https://api.github.com/users/f3l1x/gists{/gist_id}","starred_url":"https://api.github.com/users/f3l1x/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/f3l1x/subscriptions","organizations_url":"https://api.github.com/users/f3l1x/orgs","repos_url":"https://api.github.com/users/f3l1x/repos","events_url":"https://api.github.com/users/f3l1x/events{/privacy}","received_events_url":"https://api.github.com/users/f3l1x/received_events","type":"User","site_admin":false},"body":"Platební bránu...\r\n\r\n","created_at":"2015-10-09T10:01:02Z","updated_at":"2015-10-09T10:01:02Z","html_url":"https://github.com/Markette/Gopay/pull/45#discussion_r41615015","pull_request_url":"https://api.github.com/repos/Markette/Gopay/pulls/45","_links":{"self":{"href":"https://api.github.com/repos/Markette/Gopay/pulls/comments/41615015"},"html":{"href":"https://github.com/Markette/Gopay/pull/45#discussion_r41615015"},"pull_request":{"href":"https://api.github.com/repos/Markette/Gopay/pulls/45"}}},"pull_request":{"url":"https://api.github.com/repos/Markette/Gopay/pulls/45","id":41460464,"html_url":"https://github.com/Markette/Gopay/pull/45","diff_url":"https://github.com/Markette/Gopay/pull/45.diff","patch_url":"https://github.com/Markette/Gopay/pull/45.patch","issue_url":"https://api.github.com/repos/Markette/Gopay/issues/45","number":45,"state":"open","locked":false,"title":"Přidání inline metody platby.","user":{"login":"Attanon","id":3205711,"avatar_url":"https://avatars.githubusercontent.com/u/3205711?v=3","gravatar_id":"","url":"https://api.github.com/users/Attanon","html_url":"https://github.com/Attanon","followers_url":"https://api.github.com/users/Attanon/followers","following_url":"https://api.github.com/users/Attanon/following{/other_user}","gists_url":"https://api.github.com/users/Attanon/gists{/gist_id}","starred_url":"https://api.github.com/users/Attanon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Attanon/subscriptions","organizations_url":"https://api.github.com/users/Attanon/orgs","repos_url":"https://api.github.com/users/Attanon/repos","events_url":"https://api.github.com/users/Attanon/events{/privacy}","received_events_url":"https://api.github.com/users/Attanon/received_events","type":"User","site_admin":false},"body":"Ahoj, \r\n\r\nprovedl jsem malou úpravu metody pay u service, aby bylo možné získat potřebné informace k vytvoření nové inline platební brány. Je to malinká změna.","created_at":"2015-08-03T12:08:20Z","updated_at":"2015-10-09T10:01:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d0d5faa35ea4ffdecdfe4ed00954719f1c2ae287","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Markette/Gopay/pulls/45/commits","review_comments_url":"https://api.github.com/repos/Markette/Gopay/pulls/45/comments","review_comment_url":"https://api.github.com/repos/Markette/Gopay/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Markette/Gopay/issues/45/comments","statuses_url":"https://api.github.com/repos/Markette/Gopay/statuses/129bbb63638001f77754742c1f36505cc4c53227","head":{"label":"Attanon:master","ref":"master","sha":"129bbb63638001f77754742c1f36505cc4c53227","user":{"login":"Attanon","id":3205711,"avatar_url":"https://avatars.githubusercontent.com/u/3205711?v=3","gravatar_id":"","url":"https://api.github.com/users/Attanon","html_url":"https://github.com/Attanon","followers_url":"https://api.github.com/users/Attanon/followers","following_url":"https://api.github.com/users/Attanon/following{/other_user}","gists_url":"https://api.github.com/users/Attanon/gists{/gist_id}","starred_url":"https://api.github.com/users/Attanon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Attanon/subscriptions","organizations_url":"https://api.github.com/users/Attanon/orgs","repos_url":"https://api.github.com/users/Attanon/repos","events_url":"https://api.github.com/users/Attanon/events{/privacy}","received_events_url":"https://api.github.com/users/Attanon/received_events","type":"User","site_admin":false},"repo":{"id":40001450,"name":"Gopay","full_name":"Attanon/Gopay","owner":{"login":"Attanon","id":3205711,"avatar_url":"https://avatars.githubusercontent.com/u/3205711?v=3","gravatar_id":"","url":"https://api.github.com/users/Attanon","html_url":"https://github.com/Attanon","followers_url":"https://api.github.com/users/Attanon/followers","following_url":"https://api.github.com/users/Attanon/following{/other_user}","gists_url":"https://api.github.com/users/Attanon/gists{/gist_id}","starred_url":"https://api.github.com/users/Attanon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Attanon/subscriptions","organizations_url":"https://api.github.com/users/Attanon/orgs","repos_url":"https://api.github.com/users/Attanon/repos","events_url":"https://api.github.com/users/Attanon/events{/privacy}","received_events_url":"https://api.github.com/users/Attanon/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Attanon/Gopay","description":"Integrace Gopay pro Nette Framework","fork":true,"url":"https://api.github.com/repos/Attanon/Gopay","forks_url":"https://api.github.com/repos/Attanon/Gopay/forks","keys_url":"https://api.github.com/repos/Attanon/Gopay/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Attanon/Gopay/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Attanon/Gopay/teams","hooks_url":"https://api.github.com/repos/Attanon/Gopay/hooks","issue_events_url":"https://api.github.com/repos/Attanon/Gopay/issues/events{/number}","events_url":"https://api.github.com/repos/Attanon/Gopay/events","assignees_url":"https://api.github.com/repos/Attanon/Gopay/assignees{/user}","branches_url":"https://api.github.com/repos/Attanon/Gopay/branches{/branch}","tags_url":"https://api.github.com/repos/Attanon/Gopay/tags","blobs_url":"https://api.github.com/repos/Attanon/Gopay/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Attanon/Gopay/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Attanon/Gopay/git/refs{/sha}","trees_url":"https://api.github.com/repos/Attanon/Gopay/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Attanon/Gopay/statuses/{sha}","languages_url":"https://api.github.com/repos/Attanon/Gopay/languages","stargazers_url":"https://api.github.com/repos/Attanon/Gopay/stargazers","contributors_url":"https://api.github.com/repos/Attanon/Gopay/contributors","subscribers_url":"https://api.github.com/repos/Attanon/Gopay/subscribers","subscription_url":"https://api.github.com/repos/Attanon/Gopay/subscription","commits_url":"https://api.github.com/repos/Attanon/Gopay/commits{/sha}","git_commits_url":"https://api.github.com/repos/Attanon/Gopay/git/commits{/sha}","comments_url":"https://api.github.com/repos/Attanon/Gopay/comments{/number}","issue_comment_url":"https://api.github.com/repos/Attanon/Gopay/issues/comments{/number}","contents_url":"https://api.github.com/repos/Attanon/Gopay/contents/{+path}","compare_url":"https://api.github.com/repos/Attanon/Gopay/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Attanon/Gopay/merges","archive_url":"https://api.github.com/repos/Attanon/Gopay/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Attanon/Gopay/downloads","issues_url":"https://api.github.com/repos/Attanon/Gopay/issues{/number}","pulls_url":"https://api.github.com/repos/Attanon/Gopay/pulls{/number}","milestones_url":"https://api.github.com/repos/Attanon/Gopay/milestones{/number}","notifications_url":"https://api.github.com/repos/Attanon/Gopay/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Attanon/Gopay/labels{/name}","releases_url":"https://api.github.com/repos/Attanon/Gopay/releases{/id}","created_at":"2015-07-31T11:03:43Z","updated_at":"2015-07-31T11:03:43Z","pushed_at":"2015-10-08T12:25:16Z","git_url":"git://github.com/Attanon/Gopay.git","ssh_url":"git@github.com:Attanon/Gopay.git","clone_url":"https://github.com/Attanon/Gopay.git","svn_url":"https://github.com/Attanon/Gopay","homepage":"","size":282,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Markette:master","ref":"master","sha":"f65682175234ea14d14862e2c45dfa07445c8aec","user":{"login":"Markette","id":1813214,"avatar_url":"https://avatars.githubusercontent.com/u/1813214?v=3","gravatar_id":"","url":"https://api.github.com/users/Markette","html_url":"https://github.com/Markette","followers_url":"https://api.github.com/users/Markette/followers","following_url":"https://api.github.com/users/Markette/following{/other_user}","gists_url":"https://api.github.com/users/Markette/gists{/gist_id}","starred_url":"https://api.github.com/users/Markette/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Markette/subscriptions","organizations_url":"https://api.github.com/users/Markette/orgs","repos_url":"https://api.github.com/users/Markette/repos","events_url":"https://api.github.com/users/Markette/events{/privacy}","received_events_url":"https://api.github.com/users/Markette/received_events","type":"Organization","site_admin":false},"repo":{"id":4546467,"name":"Gopay","full_name":"Markette/Gopay","owner":{"login":"Markette","id":1813214,"avatar_url":"https://avatars.githubusercontent.com/u/1813214?v=3","gravatar_id":"","url":"https://api.github.com/users/Markette","html_url":"https://github.com/Markette","followers_url":"https://api.github.com/users/Markette/followers","following_url":"https://api.github.com/users/Markette/following{/other_user}","gists_url":"https://api.github.com/users/Markette/gists{/gist_id}","starred_url":"https://api.github.com/users/Markette/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Markette/subscriptions","organizations_url":"https://api.github.com/users/Markette/orgs","repos_url":"https://api.github.com/users/Markette/repos","events_url":"https://api.github.com/users/Markette/events{/privacy}","received_events_url":"https://api.github.com/users/Markette/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Markette/Gopay","description":"Integrace Gopay pro Nette Framework","fork":false,"url":"https://api.github.com/repos/Markette/Gopay","forks_url":"https://api.github.com/repos/Markette/Gopay/forks","keys_url":"https://api.github.com/repos/Markette/Gopay/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Markette/Gopay/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Markette/Gopay/teams","hooks_url":"https://api.github.com/repos/Markette/Gopay/hooks","issue_events_url":"https://api.github.com/repos/Markette/Gopay/issues/events{/number}","events_url":"https://api.github.com/repos/Markette/Gopay/events","assignees_url":"https://api.github.com/repos/Markette/Gopay/assignees{/user}","branches_url":"https://api.github.com/repos/Markette/Gopay/branches{/branch}","tags_url":"https://api.github.com/repos/Markette/Gopay/tags","blobs_url":"https://api.github.com/repos/Markette/Gopay/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Markette/Gopay/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Markette/Gopay/git/refs{/sha}","trees_url":"https://api.github.com/repos/Markette/Gopay/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Markette/Gopay/statuses/{sha}","languages_url":"https://api.github.com/repos/Markette/Gopay/languages","stargazers_url":"https://api.github.com/repos/Markette/Gopay/stargazers","contributors_url":"https://api.github.com/repos/Markette/Gopay/contributors","subscribers_url":"https://api.github.com/repos/Markette/Gopay/subscribers","subscription_url":"https://api.github.com/repos/Markette/Gopay/subscription","commits_url":"https://api.github.com/repos/Markette/Gopay/commits{/sha}","git_commits_url":"https://api.github.com/repos/Markette/Gopay/git/commits{/sha}","comments_url":"https://api.github.com/repos/Markette/Gopay/comments{/number}","issue_comment_url":"https://api.github.com/repos/Markette/Gopay/issues/comments{/number}","contents_url":"https://api.github.com/repos/Markette/Gopay/contents/{+path}","compare_url":"https://api.github.com/repos/Markette/Gopay/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Markette/Gopay/merges","archive_url":"https://api.github.com/repos/Markette/Gopay/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Markette/Gopay/downloads","issues_url":"https://api.github.com/repos/Markette/Gopay/issues{/number}","pulls_url":"https://api.github.com/repos/Markette/Gopay/pulls{/number}","milestones_url":"https://api.github.com/repos/Markette/Gopay/milestones{/number}","notifications_url":"https://api.github.com/repos/Markette/Gopay/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Markette/Gopay/labels{/name}","releases_url":"https://api.github.com/repos/Markette/Gopay/releases{/id}","created_at":"2012-06-04T11:40:59Z","updated_at":"2015-10-05T14:23:04Z","pushed_at":"2015-10-08T12:25:16Z","git_url":"git://github.com/Markette/Gopay.git","ssh_url":"git@github.com:Markette/Gopay.git","clone_url":"https://github.com/Markette/Gopay.git","svn_url":"https://github.com/Markette/Gopay","homepage":"","size":639,"stargazers_count":49,"watchers_count":49,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":25,"mirror_url":null,"open_issues_count":8,"forks":25,"open_issues":8,"watchers":49,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Markette/Gopay/pulls/45"},"html":{"href":"https://github.com/Markette/Gopay/pull/45"},"issue":{"href":"https://api.github.com/repos/Markette/Gopay/issues/45"},"comments":{"href":"https://api.github.com/repos/Markette/Gopay/issues/45/comments"},"review_comments":{"href":"https://api.github.com/repos/Markette/Gopay/pulls/45/comments"},"review_comment":{"href":"https://api.github.com/repos/Markette/Gopay/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Markette/Gopay/pulls/45/commits"},"statuses":{"href":"https://api.github.com/repos/Markette/Gopay/statuses/129bbb63638001f77754742c1f36505cc4c53227"}}}}