{"action":"created","comment":{"url":"https://api.github.com/repos/bitpay/copay/pulls/comments/171586701","pull_request_review_id":100464795,"id":171586701,"diff_hunk":"@@ -304,9 +312,34 @@ export class ConfirmPage {\n         return resolve();\n       }\n \n+      let maxAllowedMerchantFee = {\n+        btc: 'urgent',\n+        bch: 'normal',\n+      }\n+\n       this.onGoingProcessProvider.set('calculatingFee');\n-      this.feeProvider.getFeeRate(wallet.coin, tx.network, tx.feeLevel).then((feeRate: any) => {\n-        if (!this.usingCustomFee) tx.feeRate = feeRate;\n+      this.feeProvider.getFeeRate(wallet.coin, tx.network, this.usingMerchantFee ? maxAllowedMerchantFee[wallet.coin] : this.tx.feeLevel).then((feeRate: any) => {\n+\n+        let msg;\n+        if (this.usingCustomFee) {\n+          msg = this.translate.instant('Custom');\n+          tx.feeLevelName = msg;\n+        } else if (this.usingMerchantFee) {\n+\n+          let maxAllowedfee = feeRate * 2;\n+          this.logger.info('Using Merchant Fee:' + tx.feeRate + ' vs. referent level:' + maxAllowedfee);\n+          if (tx.feeRate > maxAllowedfee) {\n+            this.onGoingProcessProvider.set('calculatingFee');\n+            this.setNoWallet(this.translate.instant('Merchant fee to high. Payment rejected'), true);","path":"src/pages/send/confirm/confirm.ts","position":69,"original_position":69,"commit_id":"1523f98e5aca8d07a82893127cfba67e5dba035c","original_commit_id":"1523f98e5aca8d07a82893127cfba67e5dba035c","user":{"login":"cmgustavo","id":237435,"avatar_url":"https://avatars3.githubusercontent.com/u/237435?v=4","gravatar_id":"","url":"https://api.github.com/users/cmgustavo","html_url":"https://github.com/cmgustavo","followers_url":"https://api.github.com/users/cmgustavo/followers","following_url":"https://api.github.com/users/cmgustavo/following{/other_user}","gists_url":"https://api.github.com/users/cmgustavo/gists{/gist_id}","starred_url":"https://api.github.com/users/cmgustavo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cmgustavo/subscriptions","organizations_url":"https://api.github.com/users/cmgustavo/orgs","repos_url":"https://api.github.com/users/cmgustavo/repos","events_url":"https://api.github.com/users/cmgustavo/events{/privacy}","received_events_url":"https://api.github.com/users/cmgustavo/received_events","type":"User","site_admin":false},"body":"Typo: Marchant fee too high","created_at":"2018-03-01T15:05:48Z","updated_at":"2018-03-01T15:05:48Z","html_url":"https://github.com/bitpay/copay/pull/8137#discussion_r171586701","pull_request_url":"https://api.github.com/repos/bitpay/copay/pulls/8137","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/bitpay/copay/pulls/comments/171586701"},"html":{"href":"https://github.com/bitpay/copay/pull/8137#discussion_r171586701"},"pull_request":{"href":"https://api.github.com/repos/bitpay/copay/pulls/8137"}}},"pull_request":{"url":"https://api.github.com/repos/bitpay/copay/pulls/8137","id":172249889,"html_url":"https://github.com/bitpay/copay/pull/8137","diff_url":"https://github.com/bitpay/copay/pull/8137.diff","patch_url":"https://github.com/bitpay/copay/pull/8137.patch","issue_url":"https://api.github.com/repos/bitpay/copay/issues/8137","number":8137,"state":"open","locked":false,"title":"[v4] Feat: support required fee in paypro","user":{"login":"Gamboster","id":10983458,"avatar_url":"https://avatars3.githubusercontent.com/u/10983458?v=4","gravatar_id":"","url":"https://api.github.com/users/Gamboster","html_url":"https://github.com/Gamboster","followers_url":"https://api.github.com/users/Gamboster/followers","following_url":"https://api.github.com/users/Gamboster/following{/other_user}","gists_url":"https://api.github.com/users/Gamboster/gists{/gist_id}","starred_url":"https://api.github.com/users/Gamboster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gamboster/subscriptions","organizations_url":"https://api.github.com/users/Gamboster/orgs","repos_url":"https://api.github.com/users/Gamboster/repos","events_url":"https://api.github.com/users/Gamboster/events{/privacy}","received_events_url":"https://api.github.com/users/Gamboster/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-03-01T14:22:39Z","updated_at":"2018-03-01T15:05:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a442672b4050d3727dbe2e8f462a73a65c9cb50e","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/bitpay/copay/pulls/8137/commits","review_comments_url":"https://api.github.com/repos/bitpay/copay/pulls/8137/comments","review_comment_url":"https://api.github.com/repos/bitpay/copay/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bitpay/copay/issues/8137/comments","statuses_url":"https://api.github.com/repos/bitpay/copay/statuses/1523f98e5aca8d07a82893127cfba67e5dba035c","head":{"label":"Gamboster:feat/supportRequiredFeePaypro","ref":"feat/supportRequiredFeePaypro","sha":"1523f98e5aca8d07a82893127cfba67e5dba035c","user":{"login":"Gamboster","id":10983458,"avatar_url":"https://avatars3.githubusercontent.com/u/10983458?v=4","gravatar_id":"","url":"https://api.github.com/users/Gamboster","html_url":"https://github.com/Gamboster","followers_url":"https://api.github.com/users/Gamboster/followers","following_url":"https://api.github.com/users/Gamboster/following{/other_user}","gists_url":"https://api.github.com/users/Gamboster/gists{/gist_id}","starred_url":"https://api.github.com/users/Gamboster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gamboster/subscriptions","organizations_url":"https://api.github.com/users/Gamboster/orgs","repos_url":"https://api.github.com/users/Gamboster/repos","events_url":"https://api.github.com/users/Gamboster/events{/privacy}","received_events_url":"https://api.github.com/users/Gamboster/received_events","type":"User","site_admin":false},"repo":{"id":95455979,"name":"copay","full_name":"Gamboster/copay","owner":{"login":"Gamboster","id":10983458,"avatar_url":"https://avatars3.githubusercontent.com/u/10983458?v=4","gravatar_id":"","url":"https://api.github.com/users/Gamboster","html_url":"https://github.com/Gamboster","followers_url":"https://api.github.com/users/Gamboster/followers","following_url":"https://api.github.com/users/Gamboster/following{/other_user}","gists_url":"https://api.github.com/users/Gamboster/gists{/gist_id}","starred_url":"https://api.github.com/users/Gamboster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gamboster/subscriptions","organizations_url":"https://api.github.com/users/Gamboster/orgs","repos_url":"https://api.github.com/users/Gamboster/repos","events_url":"https://api.github.com/users/Gamboster/events{/privacy}","received_events_url":"https://api.github.com/users/Gamboster/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Gamboster/copay","description":"Copay is a secure bitcoin wallet platform for both desktop and mobile devices.","fork":true,"url":"https://api.github.com/repos/Gamboster/copay","forks_url":"https://api.github.com/repos/Gamboster/copay/forks","keys_url":"https://api.github.com/repos/Gamboster/copay/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Gamboster/copay/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Gamboster/copay/teams","hooks_url":"https://api.github.com/repos/Gamboster/copay/hooks","issue_events_url":"https://api.github.com/repos/Gamboster/copay/issues/events{/number}","events_url":"https://api.github.com/repos/Gamboster/copay/events","assignees_url":"https://api.github.com/repos/Gamboster/copay/assignees{/user}","branches_url":"https://api.github.com/repos/Gamboster/copay/branches{/branch}","tags_url":"https://api.github.com/repos/Gamboster/copay/tags","blobs_url":"https://api.github.com/repos/Gamboster/copay/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Gamboster/copay/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Gamboster/copay/git/refs{/sha}","trees_url":"https://api.github.com/repos/Gamboster/copay/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Gamboster/copay/statuses/{sha}","languages_url":"https://api.github.com/repos/Gamboster/copay/languages","stargazers_url":"https://api.github.com/repos/Gamboster/copay/stargazers","contributors_url":"https://api.github.com/repos/Gamboster/copay/contributors","subscribers_url":"https://api.github.com/repos/Gamboster/copay/subscribers","subscription_url":"https://api.github.com/repos/Gamboster/copay/subscription","commits_url":"https://api.github.com/repos/Gamboster/copay/commits{/sha}","git_commits_url":"https://api.github.com/repos/Gamboster/copay/git/commits{/sha}","comments_url":"https://api.github.com/repos/Gamboster/copay/comments{/number}","issue_comment_url":"https://api.github.com/repos/Gamboster/copay/issues/comments{/number}","contents_url":"https://api.github.com/repos/Gamboster/copay/contents/{+path}","compare_url":"https://api.github.com/repos/Gamboster/copay/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Gamboster/copay/merges","archive_url":"https://api.github.com/repos/Gamboster/copay/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Gamboster/copay/downloads","issues_url":"https://api.github.com/repos/Gamboster/copay/issues{/number}","pulls_url":"https://api.github.com/repos/Gamboster/copay/pulls{/number}","milestones_url":"https://api.github.com/repos/Gamboster/copay/milestones{/number}","notifications_url":"https://api.github.com/repos/Gamboster/copay/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Gamboster/copay/labels{/name}","releases_url":"https://api.github.com/repos/Gamboster/copay/releases{/id}","deployments_url":"https://api.github.com/repos/Gamboster/copay/deployments","created_at":"2017-06-26T14:34:38Z","updated_at":"2017-08-30T12:46:25Z","pushed_at":"2018-03-01T15:00:15Z","git_url":"git://github.com/Gamboster/copay.git","ssh_url":"git@github.com:Gamboster/copay.git","clone_url":"https://github.com/Gamboster/copay.git","svn_url":"https://github.com/Gamboster/copay","homepage":"http://copay.io","size":96306,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","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":1,"license":null,"forks":0,"open_issues":1,"watchers":1,"default_branch":"master"}},"base":{"label":"bitpay:master","ref":"master","sha":"fab77e0a8bf5dd78d23dc09d9e8fdaf8fd1bb8c3","user":{"login":"bitpay","id":2554930,"avatar_url":"https://avatars2.githubusercontent.com/u/2554930?v=4","gravatar_id":"","url":"https://api.github.com/users/bitpay","html_url":"https://github.com/bitpay","followers_url":"https://api.github.com/users/bitpay/followers","following_url":"https://api.github.com/users/bitpay/following{/other_user}","gists_url":"https://api.github.com/users/bitpay/gists{/gist_id}","starred_url":"https://api.github.com/users/bitpay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bitpay/subscriptions","organizations_url":"https://api.github.com/users/bitpay/orgs","repos_url":"https://api.github.com/users/bitpay/repos","events_url":"https://api.github.com/users/bitpay/events{/privacy}","received_events_url":"https://api.github.com/users/bitpay/received_events","type":"Organization","site_admin":false},"repo":{"id":18141084,"name":"copay","full_name":"bitpay/copay","owner":{"login":"bitpay","id":2554930,"avatar_url":"https://avatars2.githubusercontent.com/u/2554930?v=4","gravatar_id":"","url":"https://api.github.com/users/bitpay","html_url":"https://github.com/bitpay","followers_url":"https://api.github.com/users/bitpay/followers","following_url":"https://api.github.com/users/bitpay/following{/other_user}","gists_url":"https://api.github.com/users/bitpay/gists{/gist_id}","starred_url":"https://api.github.com/users/bitpay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bitpay/subscriptions","organizations_url":"https://api.github.com/users/bitpay/orgs","repos_url":"https://api.github.com/users/bitpay/repos","events_url":"https://api.github.com/users/bitpay/events{/privacy}","received_events_url":"https://api.github.com/users/bitpay/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/bitpay/copay","description":"Copay is a secure Bitcoin and Bitcoin Cash wallet platform for both desktop and mobile devices.","fork":false,"url":"https://api.github.com/repos/bitpay/copay","forks_url":"https://api.github.com/repos/bitpay/copay/forks","keys_url":"https://api.github.com/repos/bitpay/copay/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bitpay/copay/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bitpay/copay/teams","hooks_url":"https://api.github.com/repos/bitpay/copay/hooks","issue_events_url":"https://api.github.com/repos/bitpay/copay/issues/events{/number}","events_url":"https://api.github.com/repos/bitpay/copay/events","assignees_url":"https://api.github.com/repos/bitpay/copay/assignees{/user}","branches_url":"https://api.github.com/repos/bitpay/copay/branches{/branch}","tags_url":"https://api.github.com/repos/bitpay/copay/tags","blobs_url":"https://api.github.com/repos/bitpay/copay/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bitpay/copay/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bitpay/copay/git/refs{/sha}","trees_url":"https://api.github.com/repos/bitpay/copay/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bitpay/copay/statuses/{sha}","languages_url":"https://api.github.com/repos/bitpay/copay/languages","stargazers_url":"https://api.github.com/repos/bitpay/copay/stargazers","contributors_url":"https://api.github.com/repos/bitpay/copay/contributors","subscribers_url":"https://api.github.com/repos/bitpay/copay/subscribers","subscription_url":"https://api.github.com/repos/bitpay/copay/subscription","commits_url":"https://api.github.com/repos/bitpay/copay/commits{/sha}","git_commits_url":"https://api.github.com/repos/bitpay/copay/git/commits{/sha}","comments_url":"https://api.github.com/repos/bitpay/copay/comments{/number}","issue_comment_url":"https://api.github.com/repos/bitpay/copay/issues/comments{/number}","contents_url":"https://api.github.com/repos/bitpay/copay/contents/{+path}","compare_url":"https://api.github.com/repos/bitpay/copay/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bitpay/copay/merges","archive_url":"https://api.github.com/repos/bitpay/copay/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bitpay/copay/downloads","issues_url":"https://api.github.com/repos/bitpay/copay/issues{/number}","pulls_url":"https://api.github.com/repos/bitpay/copay/pulls{/number}","milestones_url":"https://api.github.com/repos/bitpay/copay/milestones{/number}","notifications_url":"https://api.github.com/repos/bitpay/copay/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bitpay/copay/labels{/name}","releases_url":"https://api.github.com/repos/bitpay/copay/releases{/id}","deployments_url":"https://api.github.com/repos/bitpay/copay/deployments","created_at":"2014-03-26T14:33:07Z","updated_at":"2018-03-01T09:43:52Z","pushed_at":"2018-03-01T15:00:16Z","git_url":"git://github.com/bitpay/copay.git","ssh_url":"git@github.com:bitpay/copay.git","clone_url":"https://github.com/bitpay/copay.git","svn_url":"https://github.com/bitpay/copay","homepage":"http://copay.io","size":96743,"stargazers_count":1849,"watchers_count":1849,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":930,"mirror_url":null,"archived":false,"open_issues_count":362,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":930,"open_issues":362,"watchers":1849,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/bitpay/copay/pulls/8137"},"html":{"href":"https://github.com/bitpay/copay/pull/8137"},"issue":{"href":"https://api.github.com/repos/bitpay/copay/issues/8137"},"comments":{"href":"https://api.github.com/repos/bitpay/copay/issues/8137/comments"},"review_comments":{"href":"https://api.github.com/repos/bitpay/copay/pulls/8137/comments"},"review_comment":{"href":"https://api.github.com/repos/bitpay/copay/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bitpay/copay/pulls/8137/commits"},"statuses":{"href":"https://api.github.com/repos/bitpay/copay/statuses/1523f98e5aca8d07a82893127cfba67e5dba035c"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"cmgustavo"}}