Most of the contribution developer of CCGV knows that it changes the total amount of the order and sends it to the payment module for payment. It also recalculates the tax to and sends it to the payment module if this is choosen. Well, this works perfect for payment modules that only needs the credit card number, valid throu date and the total amount to proceed this payment. But there are some payment services that redirects the user to a secure site on the payment providers server and let the user state the card number there instead. The payment service that I'm trying to integrate needs the cart information (article number, product name, quantity and price) in order to calculate the total amount that will be drawn from the users credit card account. This is already taken care of. The only problem is that osCommerce or the CCGV contribution sends the cart information as is it without any discount reduced on the price. This will result that the paysite will show the original total amount without the discount since it calculates the total amount based on the cart information.
If the CCGV contribution is configured to recalculate the tax then this is going to mess upp the calculation on the paysite even more.
Is there any way that I can get the discount amount from the payment module? If I can get this value then I could program it in the payment module to send this amount too and the paysite will know that it should reduce the total amount with this amount. It would be great if I could get the name of the discount coupon or the gift voucher too?
Please give me some advice to solve this problem.
Thank you!
Thomas
Edited by dlagon, 08 August 2006, 11:24.















