PrestaShop Forums: Offline CC Module not secure - PrestaShop Forums

Jump to content


Welcome to the PrestaShop Forum! We hope you'll share your comments and suggestions with us. We ask that you please post in English to the main sections of the PrestaShop Forum. If you want to write in another language, please post in the corresponding PrestaShop Community section below.

Please note that PrestaShop Community sections are largely self-moderated. PrestaShop team members may or may not participate in non-English sections. To improve the chances of receiving feedback to your question or comment, please post it in English to the main sections of our Forum.

NYC

Vous parlez français ? par ici !


Offline CC Module not secure


Offline CC Module not secure

#1 sweber25

    PrestaShop Apprentice

  • 03 Mar 2009
  • Members
  • PipPip
  • 26 posts

Posted 04 July 2009 - 10:47 PM

I have an SSL Cert installed on my site and when a checkout is initiated it is redirected to the https until the customer clicks on the "Pay By Credit Card" link and it reverts back to http. Any ideas why this is doing it ? Most importantly what can I do to fix it?

PS: YOU CAN USE THE FOLLOWING LOG IN INFORMATION TO PLACE A TEST ORDER:

USER: SPOOKYIN21@YAHOO.COM
PASS: GUEST

CC NO: 4444333322221111
EXP : 06/12
C.VV : 155

I WILL DELETE ANY ORDERS WITH THIS CC NUMBER ON IT.
Thanks,

Scott W.
www.bargainbookbuy.com

#2

    PrestaShop Newbie

  • 15 Dec 2011
  • Members
  • Pip
  • 0 posts

Posted 05 July 2009 - 02:23 AM

Add the following to the top of modules/creditcard/payment.php:

$useSSL = true;


#3

    PrestaShop Newbie

  • 15 Dec 2011
  • Members
  • Pip
  • 0 posts

Posted 05 July 2009 - 05:51 AM

And don't forget to activate the SSL option in your Prestashop Back Office.

www.geuros.com/shopro

#4

    PrestaShop Newbie

  • 15 Dec 2011
  • Members
  • Pip
  • 0 posts

Posted 05 July 2009 - 06:25 PM

<?php
$useSSL = true;
include(dirname(__FILE__).'/../../config/config.inc.php');
include(dirname(__FILE__).'/../../header.php');
include(dirname(__FILE__).'/creditcard.php');

if (!$cookie->isLogged())
Tools::redirect('authentication.php?back=order.php');

$creditcard = new CreditCard();
echo $creditcard->execPayment($cart);

include_once(dirname(__FILE__).'/../../footer.php');

?>


That is what I have in my payment.php file. I am not sure if the $useSSL = true is in the right place. But it is still not working. SSL is activated in my back office.

#5

    PrestaShop Newbie

  • 15 Dec 2011
  • Members
  • Pip
  • 0 posts

Posted 06 July 2009 - 02:16 PM

Hi sweber25

I had a similar problem this morning, and in my circumstance the issue was with the actual theme.

So I recreated my chosen theme with the one that worked and everything now seems to be fine.


Perhaps you could try one of the free themes or if you still it an unmodified copy of the original prestashop template.

#6

    PrestaShop Newbie

  • 15 Dec 2011
  • Members
  • Pip
  • 0 posts

Posted 12 July 2009 - 09:29 PM

Changed theme and everything works fine now, thank you.

#7

    PrestaShop Newbie

  • 15 Dec 2011
  • Members
  • Pip
  • 0 posts

Posted 14 July 2009 - 01:03 PM

Whoever created this post should mark it "[Solved] Offline CC Module not secure". I dont want people getting the wrong impression about my module ;)

I will update the source to add the required $useSSL asap.

--Kevin





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users