{"action":"opened","number":204,"pull_request":{"url":"https://api.github.com/repos/liberapay/liberapay.com/pulls/204","id":61807043,"html_url":"https://github.com/liberapay/liberapay.com/pull/204","diff_url":"https://github.com/liberapay/liberapay.com/pull/204.diff","patch_url":"https://github.com/liberapay/liberapay.com/pull/204.patch","issue_url":"https://api.github.com/repos/liberapay/liberapay.com/issues/204","number":204,"state":"open","locked":false,"title":"Fix computation of payment processing fees","user":{"login":"Changaco","id":1581590,"avatar_url":"https://avatars.githubusercontent.com/u/1581590?v=3","gravatar_id":"","url":"https://api.github.com/users/Changaco","html_url":"https://github.com/Changaco","followers_url":"https://api.github.com/users/Changaco/followers","following_url":"https://api.github.com/users/Changaco/following{/other_user}","gists_url":"https://api.github.com/users/Changaco/gists{/gist_id}","starred_url":"https://api.github.com/users/Changaco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Changaco/subscriptions","organizations_url":"https://api.github.com/users/Changaco/orgs","repos_url":"https://api.github.com/users/Changaco/repos","events_url":"https://api.github.com/users/Changaco/events{/privacy}","received_events_url":"https://api.github.com/users/Changaco/received_events","type":"User","site_admin":false},"body":"We just received our first invoice from Mangopay, and it was a bad surprise: we owe them €0.75. Obviously the amount isn't a problem, the real issue is the revelation that we need to upcharge users to pay 17% VAT on Mangopay's fee (they never told us about that).\r\n\r\nThat means our actual credit card fees are 2.11% + €0.21, not 1.8% + €0.18. :-(\r\n\r\nUndercharging users is a big deal, so I've already deployed this in production. This PR is to inform everyone following this repo of the problem, and to give an opportunity to review the changes.","created_at":"2016-03-05T09:25:44Z","updated_at":"2016-03-05T09:25:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/liberapay/liberapay.com/pulls/204/commits","review_comments_url":"https://api.github.com/repos/liberapay/liberapay.com/pulls/204/comments","review_comment_url":"https://api.github.com/repos/liberapay/liberapay.com/pulls/comments{/number}","comments_url":"https://api.github.com/repos/liberapay/liberapay.com/issues/204/comments","statuses_url":"https://api.github.com/repos/liberapay/liberapay.com/statuses/69d6c1a820799f85be10dd071ffb86365f797d9f","head":{"label":"liberapay:fix-fees","ref":"fix-fees","sha":"69d6c1a820799f85be10dd071ffb86365f797d9f","user":{"login":"liberapay","id":12560099,"avatar_url":"https://avatars.githubusercontent.com/u/12560099?v=3","gravatar_id":"","url":"https://api.github.com/users/liberapay","html_url":"https://github.com/liberapay","followers_url":"https://api.github.com/users/liberapay/followers","following_url":"https://api.github.com/users/liberapay/following{/other_user}","gists_url":"https://api.github.com/users/liberapay/gists{/gist_id}","starred_url":"https://api.github.com/users/liberapay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liberapay/subscriptions","organizations_url":"https://api.github.com/users/liberapay/orgs","repos_url":"https://api.github.com/users/liberapay/repos","events_url":"https://api.github.com/users/liberapay/events{/privacy}","received_events_url":"https://api.github.com/users/liberapay/received_events","type":"Organization","site_admin":false},"repo":{"id":36075352,"name":"liberapay.com","full_name":"liberapay/liberapay.com","owner":{"login":"liberapay","id":12560099,"avatar_url":"https://avatars.githubusercontent.com/u/12560099?v=3","gravatar_id":"","url":"https://api.github.com/users/liberapay","html_url":"https://github.com/liberapay","followers_url":"https://api.github.com/users/liberapay/followers","following_url":"https://api.github.com/users/liberapay/following{/other_user}","gists_url":"https://api.github.com/users/liberapay/gists{/gist_id}","starred_url":"https://api.github.com/users/liberapay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liberapay/subscriptions","organizations_url":"https://api.github.com/users/liberapay/orgs","repos_url":"https://api.github.com/users/liberapay/repos","events_url":"https://api.github.com/users/liberapay/events{/privacy}","received_events_url":"https://api.github.com/users/liberapay/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/liberapay/liberapay.com","description":"Recurrent donations platform","fork":false,"url":"https://api.github.com/repos/liberapay/liberapay.com","forks_url":"https://api.github.com/repos/liberapay/liberapay.com/forks","keys_url":"https://api.github.com/repos/liberapay/liberapay.com/keys{/key_id}","collaborators_url":"https://api.github.com/repos/liberapay/liberapay.com/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/liberapay/liberapay.com/teams","hooks_url":"https://api.github.com/repos/liberapay/liberapay.com/hooks","issue_events_url":"https://api.github.com/repos/liberapay/liberapay.com/issues/events{/number}","events_url":"https://api.github.com/repos/liberapay/liberapay.com/events","assignees_url":"https://api.github.com/repos/liberapay/liberapay.com/assignees{/user}","branches_url":"https://api.github.com/repos/liberapay/liberapay.com/branches{/branch}","tags_url":"https://api.github.com/repos/liberapay/liberapay.com/tags","blobs_url":"https://api.github.com/repos/liberapay/liberapay.com/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/liberapay/liberapay.com/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/liberapay/liberapay.com/git/refs{/sha}","trees_url":"https://api.github.com/repos/liberapay/liberapay.com/git/trees{/sha}","statuses_url":"https://api.github.com/repos/liberapay/liberapay.com/statuses/{sha}","languages_url":"https://api.github.com/repos/liberapay/liberapay.com/languages","stargazers_url":"https://api.github.com/repos/liberapay/liberapay.com/stargazers","contributors_url":"https://api.github.com/repos/liberapay/liberapay.com/contributors","subscribers_url":"https://api.github.com/repos/liberapay/liberapay.com/subscribers","subscription_url":"https://api.github.com/repos/liberapay/liberapay.com/subscription","commits_url":"https://api.github.com/repos/liberapay/liberapay.com/commits{/sha}","git_commits_url":"https://api.github.com/repos/liberapay/liberapay.com/git/commits{/sha}","comments_url":"https://api.github.com/repos/liberapay/liberapay.com/comments{/number}","issue_comment_url":"https://api.github.com/repos/liberapay/liberapay.com/issues/comments{/number}","contents_url":"https://api.github.com/repos/liberapay/liberapay.com/contents/{+path}","compare_url":"https://api.github.com/repos/liberapay/liberapay.com/compare/{base}...{head}","merges_url":"https://api.github.com/repos/liberapay/liberapay.com/merges","archive_url":"https://api.github.com/repos/liberapay/liberapay.com/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/liberapay/liberapay.com/downloads","issues_url":"https://api.github.com/repos/liberapay/liberapay.com/issues{/number}","pulls_url":"https://api.github.com/repos/liberapay/liberapay.com/pulls{/number}","milestones_url":"https://api.github.com/repos/liberapay/liberapay.com/milestones{/number}","notifications_url":"https://api.github.com/repos/liberapay/liberapay.com/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/liberapay/liberapay.com/labels{/name}","releases_url":"https://api.github.com/repos/liberapay/liberapay.com/releases{/id}","deployments_url":"https://api.github.com/repos/liberapay/liberapay.com/deployments","created_at":"2015-05-22T14:03:52Z","updated_at":"2016-03-05T08:26:33Z","pushed_at":"2016-03-05T09:25:44Z","git_url":"git://github.com/liberapay/liberapay.com.git","ssh_url":"git@github.com:liberapay/liberapay.com.git","clone_url":"https://github.com/liberapay/liberapay.com.git","svn_url":"https://github.com/liberapay/liberapay.com","homepage":"https://liberapay.com/","size":23077,"stargazers_count":27,"watchers_count":27,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":77,"forks":5,"open_issues":77,"watchers":27,"default_branch":"master"}},"base":{"label":"liberapay:master","ref":"master","sha":"df538149d00e4f7724ad8a39ccd6e2f6c85c91c1","user":{"login":"liberapay","id":12560099,"avatar_url":"https://avatars.githubusercontent.com/u/12560099?v=3","gravatar_id":"","url":"https://api.github.com/users/liberapay","html_url":"https://github.com/liberapay","followers_url":"https://api.github.com/users/liberapay/followers","following_url":"https://api.github.com/users/liberapay/following{/other_user}","gists_url":"https://api.github.com/users/liberapay/gists{/gist_id}","starred_url":"https://api.github.com/users/liberapay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liberapay/subscriptions","organizations_url":"https://api.github.com/users/liberapay/orgs","repos_url":"https://api.github.com/users/liberapay/repos","events_url":"https://api.github.com/users/liberapay/events{/privacy}","received_events_url":"https://api.github.com/users/liberapay/received_events","type":"Organization","site_admin":false},"repo":{"id":36075352,"name":"liberapay.com","full_name":"liberapay/liberapay.com","owner":{"login":"liberapay","id":12560099,"avatar_url":"https://avatars.githubusercontent.com/u/12560099?v=3","gravatar_id":"","url":"https://api.github.com/users/liberapay","html_url":"https://github.com/liberapay","followers_url":"https://api.github.com/users/liberapay/followers","following_url":"https://api.github.com/users/liberapay/following{/other_user}","gists_url":"https://api.github.com/users/liberapay/gists{/gist_id}","starred_url":"https://api.github.com/users/liberapay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liberapay/subscriptions","organizations_url":"https://api.github.com/users/liberapay/orgs","repos_url":"https://api.github.com/users/liberapay/repos","events_url":"https://api.github.com/users/liberapay/events{/privacy}","received_events_url":"https://api.github.com/users/liberapay/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/liberapay/liberapay.com","description":"Recurrent donations platform","fork":false,"url":"https://api.github.com/repos/liberapay/liberapay.com","forks_url":"https://api.github.com/repos/liberapay/liberapay.com/forks","keys_url":"https://api.github.com/repos/liberapay/liberapay.com/keys{/key_id}","collaborators_url":"https://api.github.com/repos/liberapay/liberapay.com/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/liberapay/liberapay.com/teams","hooks_url":"https://api.github.com/repos/liberapay/liberapay.com/hooks","issue_events_url":"https://api.github.com/repos/liberapay/liberapay.com/issues/events{/number}","events_url":"https://api.github.com/repos/liberapay/liberapay.com/events","assignees_url":"https://api.github.com/repos/liberapay/liberapay.com/assignees{/user}","branches_url":"https://api.github.com/repos/liberapay/liberapay.com/branches{/branch}","tags_url":"https://api.github.com/repos/liberapay/liberapay.com/tags","blobs_url":"https://api.github.com/repos/liberapay/liberapay.com/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/liberapay/liberapay.com/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/liberapay/liberapay.com/git/refs{/sha}","trees_url":"https://api.github.com/repos/liberapay/liberapay.com/git/trees{/sha}","statuses_url":"https://api.github.com/repos/liberapay/liberapay.com/statuses/{sha}","languages_url":"https://api.github.com/repos/liberapay/liberapay.com/languages","stargazers_url":"https://api.github.com/repos/liberapay/liberapay.com/stargazers","contributors_url":"https://api.github.com/repos/liberapay/liberapay.com/contributors","subscribers_url":"https://api.github.com/repos/liberapay/liberapay.com/subscribers","subscription_url":"https://api.github.com/repos/liberapay/liberapay.com/subscription","commits_url":"https://api.github.com/repos/liberapay/liberapay.com/commits{/sha}","git_commits_url":"https://api.github.com/repos/liberapay/liberapay.com/git/commits{/sha}","comments_url":"https://api.github.com/repos/liberapay/liberapay.com/comments{/number}","issue_comment_url":"https://api.github.com/repos/liberapay/liberapay.com/issues/comments{/number}","contents_url":"https://api.github.com/repos/liberapay/liberapay.com/contents/{+path}","compare_url":"https://api.github.com/repos/liberapay/liberapay.com/compare/{base}...{head}","merges_url":"https://api.github.com/repos/liberapay/liberapay.com/merges","archive_url":"https://api.github.com/repos/liberapay/liberapay.com/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/liberapay/liberapay.com/downloads","issues_url":"https://api.github.com/repos/liberapay/liberapay.com/issues{/number}","pulls_url":"https://api.github.com/repos/liberapay/liberapay.com/pulls{/number}","milestones_url":"https://api.github.com/repos/liberapay/liberapay.com/milestones{/number}","notifications_url":"https://api.github.com/repos/liberapay/liberapay.com/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/liberapay/liberapay.com/labels{/name}","releases_url":"https://api.github.com/repos/liberapay/liberapay.com/releases{/id}","deployments_url":"https://api.github.com/repos/liberapay/liberapay.com/deployments","created_at":"2015-05-22T14:03:52Z","updated_at":"2016-03-05T08:26:33Z","pushed_at":"2016-03-05T09:25:44Z","git_url":"git://github.com/liberapay/liberapay.com.git","ssh_url":"git@github.com:liberapay/liberapay.com.git","clone_url":"https://github.com/liberapay/liberapay.com.git","svn_url":"https://github.com/liberapay/liberapay.com","homepage":"https://liberapay.com/","size":23077,"stargazers_count":27,"watchers_count":27,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":77,"forks":5,"open_issues":77,"watchers":27,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/liberapay/liberapay.com/pulls/204"},"html":{"href":"https://github.com/liberapay/liberapay.com/pull/204"},"issue":{"href":"https://api.github.com/repos/liberapay/liberapay.com/issues/204"},"comments":{"href":"https://api.github.com/repos/liberapay/liberapay.com/issues/204/comments"},"review_comments":{"href":"https://api.github.com/repos/liberapay/liberapay.com/pulls/204/comments"},"review_comment":{"href":"https://api.github.com/repos/liberapay/liberapay.com/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/liberapay/liberapay.com/pulls/204/commits"},"statuses":{"href":"https://api.github.com/repos/liberapay/liberapay.com/statuses/69d6c1a820799f85be10dd071ffb86365f797d9f"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":2,"additions":57,"deletions":39,"changed_files":10}}