Re: Credit card surcharge for shipping to different address
My initial thought is to modify the card_types.tpl and card_types.php to include 2 new fields - shipping/billing add mismatch surcharge checkbox and rate text field. I hate to assume it will be a percentage and never a flat rate. I found that the config table contains a single record called card_types with delimited values in a single field for every saved cc type. YIKES! Who thought of that?
That solves specifying card types to check the shipping/billing address. Now integrating this into cart.php looks complex but I tested the checkout process and after the payment method is selected you are taken to a section where the addresses are displayed as well as the credit card type selection. This would be the spot to code some sort of flag or alert notifying the customer of the surcharge. When they click submit they are already agreeing to the terms and conditions so they are agreeing to the surcharge if they submit. Also on this page is the change payment method if they want to go back and not purchase by credit card. It would have to be javascript to detect an onChange state for the card type list.
Now... where to begin...
|