@@ 50-64 (lines=15) @@ | ||
47 | $this->enabled = false; |
|
48 | } |
|
49 | ||
50 | if ( $this->enabled === true ) { |
|
51 | if ( OSCOM_APP_PAYPAL_GATEWAY == '1' ) { // PayPal |
|
52 | if ( !$this->_app->hasCredentials('EC') ) { |
|
53 | $this->description .= '<div class="secWarning">' . $this->_app->getDef('module_ec_error_credentials') . '</div>'; |
|
54 | ||
55 | $this->enabled = false; |
|
56 | } |
|
57 | } else { // Payflow |
|
58 | if ( !$this->_app->hasCredentials('EC', 'payflow') ) { |
|
59 | $this->description .= '<div class="secWarning">' . $this->_app->getDef('module_ec_error_credentials_payflow') . '</div>'; |
|
60 | ||
61 | $this->enabled = false; |
|
62 | } |
|
63 | } |
|
64 | } |
|
65 | ||
66 | if ( $this->enabled === true ) { |
|
67 | if ( isset($order) && is_object($order) ) { |
@@ 56-70 (lines=15) @@ | ||
53 | $this->enabled = false; |
|
54 | } |
|
55 | ||
56 | if ( $this->enabled === true ) { |
|
57 | if ( OSCOM_APP_PAYPAL_GATEWAY == '1' ) { // PayPal |
|
58 | if ( !$this->_app->hasCredentials('DP') ) { |
|
59 | $this->description .= '<div class="secWarning">' . $this->_app->getDef('module_dp_error_credentials') . '</div>'; |
|
60 | ||
61 | $this->enabled = false; |
|
62 | } |
|
63 | } else { // Payflow |
|
64 | if ( !$this->_app->hasCredentials('DP', 'payflow') ) { |
|
65 | $this->description .= '<div class="secWarning">' . $this->_app->getDef('module_dp_error_credentials_payflow') . '</div>'; |
|
66 | ||
67 | $this->enabled = false; |
|
68 | } |
|
69 | } |
|
70 | } |
|
71 | ||
72 | if ( $this->enabled === true ) { |
|
73 | if ( isset($order) && is_object($order) ) { |