Thanks dhcernese, but for some reason it's not working for me. I haven't altered any of the code and I even downloaded the module again to re-upload. Still with no luck. Can you suggest what else i should try to fix.
![]()
Please has anyone else had this problem??
I have Zencart Version 1.3.7
I installed the Securepay module 2.1.1
Everything works fine except for Mastercard. It returns the error message "The Credit Card Number does not match the Credit Card Type."
Securepay are telling me that they are seeing the transaction however the information is being passed in an incorrect format.
I understand that the above fix only applies to 1.3.8, but am I doing something wrong with my version or is there a fix for 1.3.7?
I have tried uninstalling, deleting files both locally and on the server and then re-uploading and then re-installing - still the same error.
Any advice would be very much appreciated.
Thank you in advance.
Briohny
Anyone?? I'm having no luck with anything i try.
![]()
If you get that error then NOTHING is sent to SecurePay. I can't imagine what they're seeing. I'd be interested in details from SecurePay on what it is they think they're getting from you. I also believe it's a Red Herring.. ..and probably unrelated to this problem.
To diagnose this, simply compare the credit card name strings in includes/classes/cc_validation.php
with those in includes/modules/payment/SecurePay.php
in includes/classes/cc_validation.php there should be a line in function validate something like this
either with or without the space or different capilization. I could download your version and check, but it's more direct if you look at your installation.Code:$this->cc_type = 'Master Card';
Then compare the line in includes/modules/payment/SecurePay.php that you've seen before,
and change the left-hand side to match the quoted string from cc_validation. That's all that's necessary.Code:'Master Card' => 'MasterCard',
Of course, make sure when you test with MasterCard you actually set the pull-down menu to MasterCard before processing it.
Thank you dhcernese! This solved my problem. Thank you SO much for getting back to me.