hi ,
Unfortunately I am not a developer , I have some knowledge of PHP, but i could do with it was correctly calculated the discount amount , modified the line as follows :
$methods[$k]->payment_price = (@$order->full_total->prices[0]->price_value_without_shipping_with_tax* (float)@$method->payment_params->payment_percentage / 100) + @$method->payment_price
But what to modify the value that will appear in the email and at the end of the purchase, because in these places still show the wrong value , which I file to modify to achieve the desired result in these steps?