{"action":"created","issue":{"url":"https://api.github.com/repos/Payum/Payum/issues/373","labels_url":"https://api.github.com/repos/Payum/Payum/issues/373/labels{/name}","comments_url":"https://api.github.com/repos/Payum/Payum/issues/373/comments","events_url":"https://api.github.com/repos/Payum/Payum/issues/373/events","html_url":"https://github.com/Payum/Payum/issues/373","id":75395809,"number":373,"title":"Do a partial refund","user":{"login":"mpoiriert","id":4175616,"avatar_url":"https://avatars.githubusercontent.com/u/4175616?v=3","gravatar_id":"","url":"https://api.github.com/users/mpoiriert","html_url":"https://github.com/mpoiriert","followers_url":"https://api.github.com/users/mpoiriert/followers","following_url":"https://api.github.com/users/mpoiriert/following{/other_user}","gists_url":"https://api.github.com/users/mpoiriert/gists{/gist_id}","starred_url":"https://api.github.com/users/mpoiriert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mpoiriert/subscriptions","organizations_url":"https://api.github.com/users/mpoiriert/orgs","repos_url":"https://api.github.com/users/mpoiriert/repos","events_url":"https://api.github.com/users/mpoiriert/events{/privacy}","received_events_url":"https://api.github.com/users/mpoiriert/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-05-11T23:41:01Z","updated_at":"2015-05-12T11:34:38Z","closed_at":null,"body":"I was wondering if it's possible and how to do a partial refund ?\r\n\r\nIf it's not currently possible I might implement this. Is it possible to pin point how I should proceed ?"},"comment":{"url":"https://api.github.com/repos/Payum/Payum/issues/comments/101246437","html_url":"https://github.com/Payum/Payum/issues/373#issuecomment-101246437","issue_url":"https://api.github.com/repos/Payum/Payum/issues/373","id":101246437,"user":{"login":"makasim","id":143206,"avatar_url":"https://avatars.githubusercontent.com/u/143206?v=3","gravatar_id":"","url":"https://api.github.com/users/makasim","html_url":"https://github.com/makasim","followers_url":"https://api.github.com/users/makasim/followers","following_url":"https://api.github.com/users/makasim/following{/other_user}","gists_url":"https://api.github.com/users/makasim/gists{/gist_id}","starred_url":"https://api.github.com/users/makasim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/makasim/subscriptions","organizations_url":"https://api.github.com/users/makasim/orgs","repos_url":"https://api.github.com/users/makasim/repos","events_url":"https://api.github.com/users/makasim/events{/privacy}","received_events_url":"https://api.github.com/users/makasim/received_events","type":"User","site_admin":false},"created_at":"2015-05-12T11:34:38Z","updated_at":"2015-05-12T11:34:38Z","body":"Right now Payum supports refund only for [Paypal PRO](https://github.com/Payum/Payum/blob/master/src/Payum/Paypal/ProCheckout/Nvp/Action/RefundAction.php).\r\n\r\n> If it's not currently possible I might implement this. Is it possible to pin point how I should proceed ?\r\n\r\n1. Maybe add `PartialRefund`  request\r\n2. Add a gateway specific PartialRefundAction for Paypal Pro and Paypal Express.\r\n3. Add those action to gateway factory,\r\n\r\nThat's all.\r\n\r\nIf you want to use it in combination with  Payment model you have to create an PartialRefundAction as thin layer over previously created actions."}}