Hi guys,
i just figured out how it can be done to charge the customer with extra fees when he is using paypal_ipn module. because this question has been asked very often here and i have spent many days work in this easy fix, i want to show you how this can be done.
but be careful, in some countries this is not allowed by paypal :rolleyes:
just go to paypal_ipn.php and search for this line (327 in my file):
$parameters['amount'] = number_format(($order->info['total'] - $order->info['shipping_cost'] - $order->info['tax']) * $currencies->get_value($my_currency), $currencies->get_decimal_places($my_currency));
after that just add the following line:
$parameters['handling'] = number_format(($order->info['total'] * [color=#FF0000]0.042[/color] ) * $currencies->get_value($my_currency), $currencies->get_decimal_places($my_currency));
i just take the total value of the whole order and multiply it with 0.042 (what means 4.2%); when passing over the data to paypal, this "handling fee" is added to the "shipping value" by paypal and the customer is charged with this new fee.
if you just want to add a certain fee, lets say 5.00 $ then take the following mod, which is even easier:
$parameters['handling'] = number_format(5.00 * $currencies->get_value($my_currency), $currencies->get_decimal_places($my_currency));
i think with this easy mod i can make lots of people happy :thumbsup: