A partial refund to PayPal will result in a full refund and cancellation of the purchase!

03.12.2024 13:18
#1
nordlander
Joomshopping forum user no avatar
Name: Kai
10.11.2019
Posts: 41
Quote
A partial refund to PayPal will result in a full refund and cancellation of the purchase!

Example: If one of 3 items is returned, the purchase is canceled!
The credit will then be for the total purchase.
What would be the solution?


Joomla: 4.4.8
JoomShopping: 5.5.2
PHP: PHP 8.2.15
MySQL: MySQLi 5.7.42
 
03.12.2024 14:06
#2
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Posts: 28337
Quote
Aw: A partial refund to PayPal will result in a full refund and cancellation of the purchase!

Partial refund - there is no such possibility

You can change the code

components\com_jshopping\payments\pm_paypal\pm_paypal.php

row 83-99
if (strcmp($res, "VERIFIED") == 0) {
if ($payment_status == 'Completed') {
if ($opending) {
Helper::saveToLog("payment.log", "Status pending. Order ID " . $order->order_id . ". Error mc_gross or mc_currency.");
return array(2, "Status pending. Order ID " . $order->order_id, $transaction, $transactiondata);
} else {
return array(1, '', $transaction, $transactiondata);
}
} elseif ($payment_status == 'Pending') {
Helper::saveToLog("payment.log", "Status pending. Order ID " . $order->order_id . ". Reason: " . $post['pending_reason']);
return array(2, trim(stripslashes($post['pending_reason'])), $transaction, $transactiondata);
} else {
return array(3, "Status $payment_status. Order ID " . $order->order_id, $transaction, $transactiondata);
}
} else if (strcmp($res, "INVALID") == 0) {
return array(0, 'Invalid response. Order ID ' . $order->order_id, $transaction, $transactiondata);
}


Letzte Änderung: 03.12.2024 14:07
 
03.12.2024 15:15
#3
nordlander
Joomshopping forum user no avatar
Name: Kai
10.11.2019
Posts: 41
Quote
Aw: A partial refund to PayPal will result in a full refund and cancellation of the purchase!

I will try!

 


Copyrights MAXXmarketing GmbH. Alle Rechte vorbehalten
Durch die Nutzung dieser Website stimme ich zu, dass Cookies zur optimalen Gestaltung der Website sowie zur Analyse der Nutzung der Website verwendet werden. Weiterführende Informationen finden Sie hier. OK, einverstanden.