@@ 185-197 (lines=13) @@ | ||
182 | return false; |
|
183 | } |
|
184 | ||
185 | function getModuleInfo($module, $info) { |
|
186 | $class = 'OSCOM_Braintree_' . $module; |
|
187 | ||
188 | if ( !class_exists($class) ) { |
|
189 | $this->loadLanguageFile('modules/' . $module . '/' . $module . '.php'); |
|
190 | ||
191 | include(DIR_FS_CATALOG . 'includes/apps/braintree/modules/' . $module . '/' . $module . '.php'); |
|
192 | } |
|
193 | ||
194 | $m = new $class(); |
|
195 | ||
196 | return $m->{'_' . $info}; |
|
197 | } |
|
198 | ||
199 | function hasApiCredentials($server) { |
|
200 | $server = ($server == 'live') ? '' : 'SANDBOX_'; |
@@ 161-173 (lines=13) @@ | ||
158 | return false; |
|
159 | } |
|
160 | ||
161 | function getModuleInfo($module, $info) { |
|
162 | $class = 'OSCOM_PayPal_' . $module; |
|
163 | ||
164 | if ( !class_exists($class) ) { |
|
165 | $this->loadLanguageFile('modules/' . $module . '/' . $module . '.php'); |
|
166 | ||
167 | include(DIR_FS_CATALOG . 'includes/apps/paypal/modules/' . $module . '/' . $module . '.php'); |
|
168 | } |
|
169 | ||
170 | $m = new $class(); |
|
171 | ||
172 | return $m->{'_' . $info}; |
|
173 | } |
|
174 | ||
175 | function hasCredentials($module, $type = null) { |
|
176 | if ( !defined('OSCOM_APP_PAYPAL_' . $module . '_STATUS') ) { |