@@ 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_'; |
@@ 163-175 (lines=13) @@ | ||
160 | return false; |
|
161 | } |
|
162 | ||
163 | function getModuleInfo($module, $info) { |
|
164 | $class = 'OSCOM_PayPal_' . $module; |
|
165 | ||
166 | if ( !class_exists($class) ) { |
|
167 | $this->loadLanguageFile('modules/' . $module . '/' . $module . '.php'); |
|
168 | ||
169 | include(DIR_FS_CATALOG . 'includes/apps/paypal/modules/' . $module . '/' . $module . '.php'); |
|
170 | } |
|
171 | ||
172 | $m = new $class(); |
|
173 | ||
174 | return $m->{'_' . $info}; |
|
175 | } |
|
176 | ||
177 | function hasCredentials($module, $type = null) { |
|
178 | if ( !defined('OSCOM_APP_PAYPAL_' . $module . '_STATUS') ) { |