compuskill Posted July 6, 2007 Share Posted July 6, 2007 Hello, I am having a big problem with a payment module called Saferpay (Company that accepts credit card payments on your behalf). The problem is that in the checkout_confirmation.php, you get redirected to a secure page of Saferpay, but the total amount is not forwarded correctly: For the shipping costs, the VAT is being left out. I cannot find the shipping costs for each order in the database. This is how the relevant line looks like: $total=$order->info['total']; So the thing I need is: Add the VAT for the shipping costs, for example like this: $total=$order->info['total']+$order->info['shipping']*0.19; (VAT in Germany is 0.19) But that does not work as shipping costs are nowhere to find in the database. :huh: Any help will be appreciated, and the one who gives me a working hint and who has a Paypal address will get a $15 reward. Link to comment Share on other sites More sharing options...
Guest Posted July 6, 2007 Share Posted July 6, 2007 Hello, I am having a big problem with a payment module called Saferpay (Company that accepts credit card payments on your behalf). The problem is that in the checkout_confirmation.php, you get redirected to a secure page of Saferpay, but the total amount is not forwarded correctly: For the shipping costs, the VAT is being left out. I cannot find the shipping costs for each order in the database. This is how the relevant line looks like: $total=$order->info['total']; So the thing I need is: Add the VAT for the shipping costs, for example like this: $total=$order->info['total']+$order->info['shipping']*0.19; (VAT in Germany is 0.19) But that does not work as shipping costs are nowhere to find in the database. :huh: Any help will be appreciated, and the one who gives me a working hint and who has a Paypal address will get a $15 reward. Usually the tax rate is set by declaring the tax class in the shipping module. Link to comment Share on other sites More sharing options...
compuskill Posted July 6, 2007 Author Share Posted July 6, 2007 Usually the tax rate is set by declaring the tax class in the shipping module. I have done that, but apparently, the module has been programmed in a sloppy way: Although the tax class has been declared, in the saferpay module, it does not work properly. In Paypal and all other payment modules, it works fine, and in the checkout_confirmation.php, the right amount shows up. So basically, this is simply about adding another 19 % to the shipping costs in the code quoted, but I need the shipping costs for each order... Link to comment Share on other sites More sharing options...
Guest Posted July 6, 2007 Share Posted July 6, 2007 I have done that, but apparently, the module has been programmed in a sloppy way: Although the tax class has been declared, in the saferpay module, it does not work properly. In Paypal and all other payment modules, it works fine, and in the checkout_confirmation.php, the right amount shows up. So basically, this is simply about adding another 19 % to the shipping costs in the code quoted, but I need the shipping costs for each order... Maybe you could hack some code from the modules that do work. Link to comment Share on other sites More sharing options...
compuskill Posted July 6, 2007 Author Share Posted July 6, 2007 Maybe you could hack some code from the modules that do work. Well, I guess I will just kick saferpay out of the system. They seem to be pretty nonserious as the non-working contribution comes from saferpay themselves, i. e. the Telekurs GmbH. http://www.saferpay.de So I recommend not to use that system, it is too expensive anyway and it does not work, and if you want to contact the support team, there is noone who can help you. Promises to be called back that are not kept, ... so nevermind. Link to comment Share on other sites More sharing options...
Guest Posted July 6, 2007 Share Posted July 6, 2007 In Admin -> Modules -> Order Total is Order Total the highest of all the numbers set? $total=$order->info['total']; Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.