Mike, is the site that's not working set for "all SSL all the time" using DrByte's recommended:
Code:
define('HTTP_SERVER', 'https://www.example.com');
define('HTTPS_SERVER', 'https://www.example.com');
define('ENABLE_SSL', 'false');
If so, you'll need to edit your copy of /includes/modules/payment/paypaldp.php, locating this section:
Code:
/**
* Sets payment module status based on zone restrictions etc
*/
function update_status() {
global $order, $db;
// $this->zcLog('update_status', 'Checking whether module should be enabled or not.');
// if store is not running in SSL, cannot offer credit card module, for PCI reasons
if (!defined('ENABLE_SSL') || ENABLE_SSL != 'true') {
$this->enabled = FALSE;
$this->zcLog('update_status', 'Module disabled because SSL is not enabled on this site.');
}
and change the highlighted code fragment:
Code:
/**
* Sets payment module status based on zone restrictions etc
*/
function update_status() {
global $order, $db;
// $this->zcLog('update_status', 'Checking whether module should be enabled or not.');
// if store is not running in SSL, cannot offer credit card module, for PCI reasons
if (strpos(HTTP_SERVER, 'https:') !== 0 || !(defined('ENABLE_SSL') && ENABLE_SSL == 'true')) {
$this->enabled = FALSE;
$this->zcLog('update_status', 'Module disabled because SSL is not enabled on this site.');
}
Bookmarks