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,689

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,119
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,515
Plugin Contributions:
176

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]

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

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

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,119
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.