Zen Cart Logo
Forums / Bug Reports / [Done 1.5.2] paypaldp: Module is disabled because SSL is not enabled on your site

[Done 1.5.2] paypaldp: Module is disabled because SSL is not enabled on your site

Locked

Views: 1,679

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
4 Apr 2014, 12:07 PM
#1
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,084
Plugin Contributions:
56

[Done 1.5.2] paypaldp: Module is disabled because SSL is not enabled on your site

Running Zen Cart v1.5.1. PayPal Payments Pro (USA) is enabled as a payment method, with the Debug Mode set to "Log and Email". SSL is enabled on both the store-side and in the admin.

A test order was successfully placed in the store. Whenever the details of that order are viewed in my admin, I receive a log and an email that indicates that "Module is disabled because SSL is not enabled on your site". Examining the code, the message is coming from /includes/modules/payment/paypaldp.php's update_status function:

  /**
   *  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.');
    }

The update_status function is being called by the paypaldp constructor, since an $order object exists. Since ENABLE_SSL is defined only on the store-side, that's why the message is being set and the module disabled. Since there is no credit-card information captured during the admin processing, my initial thought is that the code should be modified to perform this check only if operating during the store-side processing.

Will this affect my ability to issue a refund?

15 Apr 2014, 7:31 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: [Done 1.5.2] paypaldp: Module is disabled because SSL is not enabled on your site

Would you mind testing this change to the code:```
[B] if (IS_ADMIN_FLAG === false) {
[/B] // 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.');
}
[B] }[/B]

15 Apr 2014, 7:57 PM
#3
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,084
Plugin Contributions:
56

Re: [Done 1.5.2] paypaldp: Module is disabled because SSL is not enabled on your site

DrByte:

Would you mind testing this change to the code:
That does the trick, DrByte. Thanks.