Payum / PayumLaravelPackage

Payum offers everything you need to work with payments. From simplest use cases to very advanced ones.
https://payum.forma-pro.com/
MIT License
122 stars 38 forks source link

Create payment refund on Laravel Package #17

Closed ateixeira closed 9 years ago

ateixeira commented 9 years ago

Hello Maksim,

I'm having great experience with Payum library. Now I face the need to make Refund operations and want to contribute with the resultant code.

I've found the question http://stackoverflow.com/q/22965278/955183, talking about how to make it on Payum Bundle.. It's an excellent guideline, now I want just to ask if there are any Laravel Package specific tips so I can make it the best way.

Thanks in advance, Teixeira

makasim commented 9 years ago

The main job has to be done in payum itself. This change could be reused by any other framework extensions including this one.

In the package it may require some changes in TokenFactory. If the createRefundToken) method is added. Also it may be good to add a refund controller (like capture and authorize) we have right now.

Dont hesitate to ask any questions about Payum here or by mail or skype.

makasim commented 9 years ago

Btw, I've already done some progress on this topic. For example there is a refund request https://github.com/Payum/Payum/blob/master/src/Payum/Core/Request/Refund.php

and the action in klarna invoice https://github.com/Payum/Payum/blob/master/src/Payum/Klarna/Invoice/Action/RefundAction.php

jasonherndon commented 9 years ago

Hey - I'm building a Laravel site with Authorize.net integration and refunds are very important to us. Is this already supported with Payum or is the work still ongoing? If it's still ongoing, I'd love to contribute.

makasim commented 9 years ago

@jasonherndon core and package itself supports refund requests but unfortunately authorize net extension does not yet. paypal pro checkout is the only one payment that supports refund atm. You can use it as an example.

jasonherndon commented 9 years ago

@makasim Gotcha. I guess for the time being, if we needed to before we finished a package we could just refund it manually through Auth.net's portal. Thanks - I'll take a look at the paypal pro checkout package.