Forums / PayPal Website Payments Pro support / Partial Refund Cancels Order

Partial Refund Cancels Order

Locked

Started by chabates on 1 Mar 2010, 4:08 PM · Views: 2,482

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
1 Mar 2010, 4:08 PM
#1
chabates avatar

chabates

New Zenner

Join Date:
Apr 2008
Location:
Ontario
Posts:
76
Plugin Contributions:
0

Partial Refund Cancels Order

For some reason my partial refund requests from zencart admin are getting denied by paypal.

So i am going into paypal and issuing partial refunds, but now my orders are disappearing from zencart after the refund. Whats going on?

4 Mar 2010, 2:44 PM
#2
chabates avatar

chabates

New Zenner

Join Date:
Apr 2008
Location:
Ontario
Posts:
76
Plugin Contributions:
0

Re: Partial Refund Cancels Order

bummmmpp

6 Mar 2010, 11:28 PM
#3
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: Partial Refund Cancels Order

They're not getting deleted. It seems like your PayPal module's refund-status must be blank or set to 0 instead of 1-Pending.

To fix the order so it still shows in your admin list, you'll need to do a search for the order, open it, and change the status to 1-Pending, from the pulldown list, and uncheck the "notify customer" box, and submit. Then it should show back in your list again.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

8 Mar 2010, 3:07 PM
#4
chabates avatar

chabates

New Zenner

Join Date:
Apr 2008
Location:
Ontario
Posts:
76
Plugin Contributions:
0

Re: Partial Refund Cancels Order

I searched for the order and it said that it was set to "pending" (I have changed the status names), but I updated it to pending again and now it has re-appeared. Can i fix the modules code to update it to pending instead of whatever it tired to do? or is me changing the names the culprit?

13 Mar 2010, 11:24 PM
#5
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: Partial Refund Cancels Order

Hmmm .. a tiny bug was causing that.
You can fix it by making the following edit, or upgrading to v139 when it's released (tune in here for release announcements when they're made: )

/includes/modules/payment/paypaldp.php
around line 971 you'll see this block of code. Simply add the new line highlighted as shown:```
/**
* Submit refund request to PayPal
*/
if ($proceedToRefund) {
$response = $doPayPal->RefundTransaction($oID, $txnID, $refundAmt, $refundNote);
$error = $this->_errorHandler($response, 'DoRefund');
[B] $new_order_status = ((int)$new_order_status > 0 ? (int)$new_order_status : 1);[/B]
if (!$error) {
if (!isset($response['GROSSREFUNDAMT'])) $response['GROSSREFUNDAMT'] = $refundAmt;
// Success, so save the results


You can always recover old orders by using the search+update steps discussed earlier.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

19 Mar 2010, 2:21 PM
#6
chabates avatar

chabates

New Zenner

Join Date:
Apr 2008
Location:
Ontario
Posts:
76
Plugin Contributions:
0

Re: Partial Refund Cancels Order

awsome ty