{"action":"created","issue":{"url":"https://api.github.com/repos/woothemes/woocommerce/issues/8120","labels_url":"https://api.github.com/repos/woothemes/woocommerce/issues/8120/labels{/name}","comments_url":"https://api.github.com/repos/woothemes/woocommerce/issues/8120/comments","events_url":"https://api.github.com/repos/woothemes/woocommerce/issues/8120/events","html_url":"https://github.com/woothemes/woocommerce/pull/8120","id":73592350,"number":8120,"title":"Added new `wc_paypal_standard_refund_before` action","user":{"login":"daigo75","id":292434,"avatar_url":"https://avatars.githubusercontent.com/u/292434?v=3","gravatar_id":"","url":"https://api.github.com/users/daigo75","html_url":"https://github.com/daigo75","followers_url":"https://api.github.com/users/daigo75/followers","following_url":"https://api.github.com/users/daigo75/following{/other_user}","gists_url":"https://api.github.com/users/daigo75/gists{/gist_id}","starred_url":"https://api.github.com/users/daigo75/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daigo75/subscriptions","organizations_url":"https://api.github.com/users/daigo75/orgs","repos_url":"https://api.github.com/users/daigo75/repos","events_url":"https://api.github.com/users/daigo75/events{/privacy}","received_events_url":"https://api.github.com/users/daigo75/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-05-06T11:16:29Z","updated_at":"2015-05-08T17:13:47Z","closed_at":"2015-05-08T17:13:47Z","pull_request":{"url":"https://api.github.com/repos/woothemes/woocommerce/pulls/8120","html_url":"https://github.com/woothemes/woocommerce/pull/8120","diff_url":"https://github.com/woothemes/woocommerce/pull/8120.diff","patch_url":"https://github.com/woothemes/woocommerce/pull/8120.patch"},"body":"The action will allow to intercept a refund just before it's placed, and to alter the parameters, if required. Without such action, the only way to alter the behaviour of the refunds is to copy/paste and modify the code from `WC_Gateway_Paypal::process_refund()` method, which is a sub-optimal approach.\r\n\r\n**Note**\r\nThe action name is hypothetical, it can be changed to follow current WooCommerce standards."},"comment":{"url":"https://api.github.com/repos/woothemes/woocommerce/issues/comments/100301851","html_url":"https://github.com/woothemes/woocommerce/pull/8120#issuecomment-100301851","issue_url":"https://api.github.com/repos/woothemes/woocommerce/issues/8120","id":100301851,"user":{"login":"mikejolley","id":90977,"avatar_url":"https://avatars.githubusercontent.com/u/90977?v=3","gravatar_id":"","url":"https://api.github.com/users/mikejolley","html_url":"https://github.com/mikejolley","followers_url":"https://api.github.com/users/mikejolley/followers","following_url":"https://api.github.com/users/mikejolley/following{/other_user}","gists_url":"https://api.github.com/users/mikejolley/gists{/gist_id}","starred_url":"https://api.github.com/users/mikejolley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikejolley/subscriptions","organizations_url":"https://api.github.com/users/mikejolley/orgs","repos_url":"https://api.github.com/users/mikejolley/repos","events_url":"https://api.github.com/users/mikejolley/events{/privacy}","received_events_url":"https://api.github.com/users/mikejolley/received_events","type":"User","site_admin":false},"created_at":"2015-05-08T17:13:47Z","updated_at":"2015-05-08T17:13:47Z","body":"I added a filter in master - woocommerce_paypal_refund_request. This passes the order and gives you *full* control over the args passed to paypal. An extra class should not be necessary."}}