Jump to content

Paypal Error


Filipkiewicz

Recommended Posts

Every time a customer orders something by papal I get arror

At 2011-04-20 05:35:40 from Private:
Paypal Transaction ID: xxxxxxxxxxxxx Warning : the secure key is empty, check your payment account before validation

When you read a message, please click on the green check.

Please help :( how can I fix that?

I am using PS 1.4 and my paypal is 2.4

I tried the older versions of paypal but I am getting the same problem

Link to comment
Share on other sites

  • 4 weeks later...

Hello!
I think this is not only PayPal related issue.
I have same warning using other online gateways (polish Przelewy24 and platnosci.pl).

I have found place where this message is generated, but no clue what I can do to resolve this problem.

This is 153 line in file ../classes/PaymentModule.php

// Creating order
           if ($cart->OrderExists() == false)
               $result = $order->add();
           else
           {
               $errorMessage = Tools::displayError('An order has already been placed using this cart.');
               Logger::addLog($errorMessage, 4, '0000001', 'Cart', intval($order->id_cart));
               die($errorMessage);
           }

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



Regards.

Link to comment
Share on other sites

  • 2 weeks later...
  • 3 weeks later...
  • 1 month later...
  • 6 months later...
  • 7 months later...
  • 3 months later...

I have been plagued by this problem too. After researching it I found a developer that answered someones question about this.

 

The short answer is PS has added a check for a value on the payment module and if the var is not set you get the error - the var is not needed to function properly.

 

They edited and set the var on their modules but 3rd party developers were not notified so the var does not get set. In other words nothing different is happening other than the var was not set and it triggers an error message.

 

The comment is located at

http://forge.prestashop.com/browse/PSCFI-2365

 

Solution: Add the following line before line 153 (see Tomasz Olejnik above)...

../classes/PaymentModule.php

// Next!
// Var override to prevent obnoxious error
$secure_key = 1;

Edited by jwzumwalt (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...