cardoso Posted August 29, 2008 Posted August 29, 2008 Hi all, I got the PsiGate XML module from the contributions area... I ran/installed/coded all the updates mentioned on that page for this module. Now, when I go in as a customer (4111111111111111) I get an error and I have no idea why? Can someone help if they've seen this before? Warning: Wrong parameter count for substr() in /home/freshtor/public_html/includes/modules/payment/psigate_xml.php on line 188 This shows up on the confirmation page. Thanks for all the help. Nelson Cardoso Quote
cardoso Posted September 2, 2008 Author Posted September 2, 2008 Anybody? Hi all, I got the PsiGate XML module from the contributions area... I ran/installed/coded all the updates mentioned on that page for this module. Now, when I go in as a customer (4111111111111111) I get an error and I have no idea why? Can someone help if they've seen this before? Warning: Wrong parameter count for substr() in /home/freshtor/public_html/includes/modules/payment/psigate_xml.php on line 188 This shows up on the confirmation page. Thanks for all the help. Nelson Cardoso Quote
KyleRobotN Posted October 26, 2008 Posted October 26, 2008 Anybody? I had the same problem. Search for this. 'field' => substr($this->cc_card_number) replace with 'field' => substr($this->cc_card_number, 16) It means the code was not passing the right amount of arguments to the substr() function, it needs to have a minmum of 2. Because psigate only accepts Visa / Mastercard, and both cards are 16 digits, it's ok to hard code 16 in there. Kyle Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.