Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invoice-based refunding #124

Closed
smazurov opened this issue Dec 15, 2014 · 7 comments
Closed

Invoice-based refunding #124

smazurov opened this issue Dec 15, 2014 · 7 comments
Labels
V2 V2 Client

Comments

@smazurov
Copy link

Any chance to include support for invoice based line item refunds? Since its the only way to currently allow for refunds in the new api, I feel like it should be part of the official client.

@drewish
Copy link

drewish commented Dec 16, 2014

Agreed, something we need to do. I'll check on the status.

@drewish
Copy link

drewish commented Dec 16, 2014

@smazurov Sounds like the plan is to get this added in shortly after the 1st of the year.

@smazurov
Copy link
Author

Thanks for the follow up, looking forward to it.

@smazurov
Copy link
Author

smazurov commented Feb 9, 2015

Hey guys, checking in on the status of this.

@bhelx
Copy link
Contributor

bhelx commented Feb 9, 2015

@smazurov This is supported in the latest release 2.4.1

Pull Request: #133

I'm pushing out the docs this week. In the mean time I'd ask you to look at the tests if you want to know how to implement it:

To refund line items:

https://github.com/recurly/recurly-client-php/blob/master/Tests/Recurly/Invoice_Test.php#L133

A shortcut to refund just an adjustment:

https://github.com/recurly/recurly-client-php/blob/master/Tests/Recurly/Adjustment_Test.php#L74

To refund an "open amount":

https://github.com/recurly/recurly-client-php/blob/master/Tests/Recurly/Invoice_Test.php#L125

Let us know if you have any questions

@bhelx bhelx closed this as completed Feb 9, 2015
@smazurov
Copy link
Author

smazurov commented Feb 9, 2015

Thanks a lot!

@bhelx
Copy link
Contributor

bhelx commented Feb 12, 2015

If anyone stumbles on this thread through a search, the documentation is here:

https://docs.recurly.com/api/invoices#line-item-refund
https://docs.recurly.com/api/invoices#open-refund

@bhelx bhelx added the V2 V2 Client label Mar 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
V2 V2 Client
Projects
None yet
Development

No branches or pull requests

3 participants