Open YogaPixie17 opened 7 years ago
This can be solved by changing the code in
app/code/community/Brander/PaymentFee/Model
in function updatePaypalTotal
change
$cart->updateTotal(Mage_Paypal_Model_Cart::TOTAL_SUBTOTAL, $cart->getSalesEntity()->getFeeAmount());
to
$paymentfeeAmount = $cart->getSalesEntity()->getFeeAmount(); if ($paymentfeeAmount > 0) { $cart->addItem('Payment Fee', 1, $paymentfeeAmount, 'payment_fee'); }
Hello :) Adding the fee works perfectly on offline payment methods, I can see it has been added to the grand total on the checkout page, but the row showing the fee does not display at all. The row does show if the order is placed and then viewed in my orders.
Also if I select Paypal as the payment method, it says "PayPal gateway has rejected request. The totals of the cart item amounts do not match order amounts (#10413: Transaction refused because of an invalid argument. See additional error messages for details)." The above was tried with "Transfer Cart Line Items" in magento paypal config option set to both Yes and No
Using Magento ver. 1.9.3.1 tested on RWD and default themes.