paol:o Posted October 27, 2007 Posted October 27, 2007 I have a payment module set up for my Payment Service Provider. There is a file in Includes/Modules/Payments called, let's say, 'gateway1'. It currently processes payments from all countries. It's happy. However, I only want to accept card payments from some countries. I have attempted to achieve this by copying both files called 'gateway1' (in Includes/Modules/Payments and Includes/Languages/English/Modules/Payments), then changing each occurence of 'gateway1' to 'gateway2'. Then I saved each of the two new files as 'gateway2", then installed the new payment module. I then amended the zones in the 'gateway1' payment module to the relevant tax zone (being the countries from which I will accept card payments) and left the zones in 'gateway2' as --none--. Unfortunately, this doesn't work. Once the customer has keyed their card details in, the shopping cart goes nowhere. It refreshes the page. Ie, presents the same page again, less the card number. I tested a bit further and found that this happens as soon as I attach a zone to a payment module, Once that is done, no card payments will process at all. As soon as I change the zones back to none, it's fine. The tax zones I have set up work fine for shipping tables, so I can't understand why this won't work for payments as well. It possibly has somehting to do with the logic in the gateway1.php & gateway2.php files, but I'm no PHP guru. Please help.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.