Credit Card Refunds

Posts: 15
Joined: 05/20/2008

I was going to add refunding to the moneris module, but I can't seem to find where i can even hook into ubercart for refunds, I assume throught uc_payment_process, although there doesn't seem to be a way to specify a credit, other than maybe setting the amount to a negative number. I've done gateway implementations before but never through ubercart. If someone could point me in the right direction it would be much appreciated, I tried to find another gateway that already supported refunds to copy but couldn't find one.

Thanks

Posts: 5619
Joined: 08/07/2007
AdministratorHead Code Monkey - I eat bugs.

Unfortunately, the credit card module just doesn't have support for refunds atm. You can either handle refunds through your merchant interface or as you said trap a negative amount and log that as a credit.

Posts: 84
Joined: 12/28/2007
Bug FinderGetting busy with the Ubercode.

I added credit card refunds to the authorize.net cim module by doing a form_alter on uc_payment_by_order_form to provide a "refund" link for each payment made on an order. A successful refund enters a negative value in the payment table. It seems to work well enough (though I just saw there's a typo I need to correct!)

Let me know if you see any ways to improve this.

Best,
Chad

Posts: 15
Joined: 05/20/2008

Yah those were pretty much my thoughts as well, I'll probably make a button more like "process" that will allow custom amounts to be refunded. For ubercart are their any plans to some support for allowing gateway modules to do credits and voids officially and if so, what version would that be. If there are no plans what would be the earliest version changes could be pushed into if we came up with a plan? Would it have to wait till 3 or could it be earlier?

Cheers

Posts: 15
Joined: 05/20/2008

I implemented refunds by just passing a negative amount and handling it accordingly in the moneris module. Once I added refunds I realized I need to have charges afterwards as well. So I change the payment processes to support passing an operation, so you could pass charge, complete, refund, void etc. That worked fine as well, the problem is I need the full credit card number to do a new charge but only the last 4 digits are available. I believe you can store the full number as long as it is encrypted (which it is) and still be PCI compliant. Is in not stored at all or do I just not know how to retrieve it?

Thanks in advance

Posts: 19
Joined: 03/30/2008

Hey, I'm just wondering if there is any update on this and/or if there is a module that can be contributed for this Moneris CC refunds processing?

Posts: 15
Joined: 05/20/2008

sorry neglecting my posts, I did some changes to the moneris module but also to the uc_credit and uc_payment to make refunds a little nicer than just entering a negative number. I will gladly post the code once it passes QA here at work although I've been talking to Ryan and hopefully we can make some changes to ubercart to be a lot more friendly to different types of transactions like refunds, voids etc.

Posts: 19
Joined: 11/19/2007
Bug Finder

Just subscribing to this thread, I'd really like to have support for refunds, etc. in our site

Posts: 5619
Joined: 08/07/2007
AdministratorHead Code Monkey - I eat bugs.

Hmm... with the improvements to the CC API in 1.6, I imagine implementing refunds should be a little easier. I defined credits as a transaction type, but I'm not sure if I made a specific button for them on the credit card terminal form.

Posts: 14
Joined: 04/07/2008
Bug Finder

I was looking for the 'Credit', 'Void' buttons , and they are not available on the credit card terminal form.(the transaction types are available)