[ic] Credit card surcharge on Checkout.html

Alessandro Scudieri interchange-users@icdevgroup.org
Tue Sep 10 09:51:03 2002


> I want to add 4.1% surcharge on credit card transactions only.
>

I have set this for the "Contrassegno" payment (the customer pays on the
reception of the goods), using an hidden variable and the shipping database:

in checkout.html:
[if value payment_method eq contrassegno]
<input type='hidden' name='contrassegno' value='1'>
[else]
<input type='hidden' name='contrassegno' value='0'>
[/else]
[/if]

and in shipping.asc:
pptt Poste Italiane IT 1 99999999 f 5.16 + [value
contrassegno]*1.54*@@TOTAL@@

this add 1.54*(total number of items) when contrassegno equals '1'

Bye, Scudi
~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~
Ing. Alessandro Scudieri
OPEN INFORMATICA Srl (http://www.openinformatica.it)
Piazza Matteotti, 1/3 - 16123 Genova
Tel. 010 2543011 - Fax 010 2544759
E-Mail: scudieri@openinformatica.it
~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~