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?
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?
bummmmpp
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.
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?
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:You can always recover old orders by using the search+update steps discussed earlier.Code:/** * Submit refund request to PayPal */ if ($proceedToRefund) { $response = $doPayPal->RefundTransaction($oID, $txnID, $refundAmt, $refundNote); $error = $this->_errorHandler($response, 'DoRefund'); $new_order_status = ((int)$new_order_status > 0 ? (int)$new_order_status : 1); if (!$error) { if (!isset($response['GROSSREFUNDAMT'])) $response['GROSSREFUNDAMT'] = $refundAmt; // Success, so save the results
.
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.
awsome ty
Bookmarks