Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

PayQuake payment module errors


Gerral

Recommended Posts

I'm not able to get the included PayQuake module to work.

 

I'm using 2.2 rc1 (yes I'll be upgrading once I can get this online.. I have a 2 day deadline and this whole version is part of a 'template' from templatemonster.com)

 

Errors:

 

Warning: mcrypt_encrypt() [function.mcrypt-encrypt]: Attempt to use an empty IV, which is NOT recommend in catalog/includes/modules/payment/payquake_cc.php on line 132

 

Warning: Cannot modify header information - headers already sent by (output started at /catalog/includes/modules/payment/payquake_cc.php:132) in /catalog/includes/functions/general.php on line 33

 

Line 132:

$data = bin2hex(mcrypt_encrypt(MCRYPT_3DES, $key, $HTTP_POST_VARS['payquake_cc_number_nh-dns'], MCRYPT_MODE_ECB));

 

It appears the the warning is from missing the IV parm for mcrypt_encrypt()

 

Line 33 is from the function in general.php

 

22 function tep_redirect($url) {

23 if ( (strstr($url, "\n") != false) || (strstr($url, "\r") != false) ) {

24 tep_redirect(tep_href_link(FILENAME_DEFAULT, '', 'NONSSL', false));

25 }

26

27 if ( (ENABLE_SSL == true) && (getenv('HTTPS') == 'on') ) { // We are loading an SSL page

28 if (substr($url, 0, strlen(HTTP_SERVER)) == HTTP_SERVER) { // NONSSL url

29 $url = HTTPS_SERVER . substr($url, strlen(HTTP_SERVER)); // Change it to SSL

30 }

31 }

32

33 header('Location: ' . $url);

34

35 tep_exit();

36 }

 

THANK YOU for any and all assistance!

Link to comment
Share on other sites

Now Im not positive, but I believe the upgrade to 2.2RC2 has some changes specific to the payment modules.

 

I'm sure they do have some fixes in it. I didn't want to try to upgrade yet, just get it on line as I want it up before Valentines.

I would have assumed the included modules would actually work. I have written the work around by suppressing the warning. It seems to be hitting payquake now, but it keeps saying it doesn't like the CVV2

Link to comment
Share on other sites

I'm sure they do have some fixes in it. I didn't want to try to upgrade yet, just get it on line as I want it up before Valentines.

I would have assumed the included modules would actually work. I have written the work around by suppressing the warning. It seems to be hitting payquake now, but it keeps saying it doesn't like the CVV2

Have you tried just overwriting your payquake modules the ones that come with MS2RC2? May help. The complete upgrades not to bad though. I had a highly modded version of RC1 and upgraded it all in about 3 hours.

Follow the community build:

BS3 to osCommerce Responsive from the Get Go!

Check out the new construction:

Admin Gone to Total BS!

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...