Jump to content

Secure key warning


Recommended Posts

  • 1 month later...
  • 1 month later...

I have the same issue in PS 1.5.6.0 . I found code where message is generated. It's in PaymentModule.php file somewhere in validateOrder method.

if (!$secure_key)
						$message .= '<br />'.Tools::displayError('Warning: the secure key is empty, check your payment account before validation');
					// Optional message to attach to this order
					if (isset($message) & !empty($message))
					{
						$msg = new Message();
						$message = strip_tags($message, '<br>');
						if (Validate::isCleanHtml($message))
						{
							$msg->message = $message;
							$msg->id_order = intval($order->id);
							$msg->private = 1;
							$msg->add();
						}
					}

I notice that in most of validateOrder method calls arg $secure_key is retrieved from customer or cart. But I don't have idea, how the values are set there.

Link to comment
Share on other sites

  • 3 weeks later...

This error message occurs when validateOrder() method is called with missing secure_key argument. It often happens while using PS 1.3 payment module with PS 1.4 and later. Without looking to payment module source code it is almost impossible to help.

Link to comment
Share on other sites

  • 5 months later...
×
×
  • Create New...