catalog/includes/apps/paypal/modules/PS/PS.php 1 location
|
@@ 65-85 (lines=21) @@
|
| 62 |
|
} |
| 63 |
|
} |
| 64 |
|
|
| 65 |
|
function canMigrate() { |
| 66 |
|
$class = $this->_pm_code; |
| 67 |
|
|
| 68 |
|
if ( file_exists(DIR_FS_CATALOG . 'includes/modules/payment/' . $class . '.php') ) { |
| 69 |
|
if ( !class_exists($class) ) { |
| 70 |
|
include(DIR_FS_CATALOG . 'includes/modules/payment/' . $class . '.php'); |
| 71 |
|
} |
| 72 |
|
|
| 73 |
|
$module = new $class(); |
| 74 |
|
|
| 75 |
|
if ( isset($module->signature) ) { |
| 76 |
|
$sig = explode('|', $module->signature); |
| 77 |
|
|
| 78 |
|
if ( isset($sig[0]) && ($sig[0] == 'paypal') && isset($sig[1]) && ($sig[1] == $class) && isset($sig[2]) ) { |
| 79 |
|
return version_compare($sig[2], 4) >= 0; |
| 80 |
|
} |
| 81 |
|
} |
| 82 |
|
} |
| 83 |
|
|
| 84 |
|
return false; |
| 85 |
|
} |
| 86 |
|
|
| 87 |
|
function migrate($OSCOM_PayPal) { |
| 88 |
|
if ( defined('MODULE_PAYMENT_PAYPAL_STANDARD_GATEWAY_SERVER') ) { |
catalog/includes/apps/braintree/modules/CC/CC.php 1 location
|
@@ 126-146 (lines=21) @@
|
| 123 |
|
} |
| 124 |
|
} |
| 125 |
|
|
| 126 |
|
function canMigrate() { |
| 127 |
|
$class = $this->_pm_code; |
| 128 |
|
|
| 129 |
|
if ( file_exists(DIR_FS_CATALOG . 'includes/modules/payment/' . $class . '.php') ) { |
| 130 |
|
if ( !class_exists($class) ) { |
| 131 |
|
include(DIR_FS_CATALOG . 'includes/modules/payment/' . $class . '.php'); |
| 132 |
|
} |
| 133 |
|
|
| 134 |
|
$module = new $class(); |
| 135 |
|
|
| 136 |
|
if ( isset($module->signature) ) { |
| 137 |
|
$sig = explode('|', $module->signature); |
| 138 |
|
|
| 139 |
|
if ( isset($sig[0]) && ($sig[0] == 'braintree') && isset($sig[1]) && ($sig[1] == $class) && isset($sig[2]) ) { |
| 140 |
|
return version_compare($sig[2], 2) >= 0; |
| 141 |
|
} |
| 142 |
|
} |
| 143 |
|
} |
| 144 |
|
|
| 145 |
|
return false; |
| 146 |
|
} |
| 147 |
|
|
| 148 |
|
function migrate($OSCOM_PayPal) { |
| 149 |
|
if ( defined('MODULE_PAYMENT_BRAINTREE_CC_TRANSACTION_SERVER') ) { |
catalog/includes/apps/paypal/modules/DP/DP.php 1 location
|
@@ 74-92 (lines=19) @@
|
| 71 |
|
return $this->doMigrationCheck($this->_pm_code) || $this->doMigrationCheck($this->_pm_pf_code); |
| 72 |
|
} |
| 73 |
|
|
| 74 |
|
function doMigrationCheck($class) { |
| 75 |
|
if ( file_exists(DIR_FS_CATALOG . 'includes/modules/payment/' . $class . '.php') ) { |
| 76 |
|
if ( !class_exists($class) ) { |
| 77 |
|
include(DIR_FS_CATALOG . 'includes/modules/payment/' . $class . '.php'); |
| 78 |
|
} |
| 79 |
|
|
| 80 |
|
$module = new $class(); |
| 81 |
|
|
| 82 |
|
if ( isset($module->signature) ) { |
| 83 |
|
$sig = explode('|', $module->signature); |
| 84 |
|
|
| 85 |
|
if ( isset($sig[0]) && ($sig[0] == 'paypal') && isset($sig[1]) && ($sig[1] == $class) && isset($sig[2]) ) { |
| 86 |
|
return version_compare($sig[2], 4) >= 0; |
| 87 |
|
} |
| 88 |
|
} |
| 89 |
|
} |
| 90 |
|
|
| 91 |
|
return false; |
| 92 |
|
} |
| 93 |
|
|
| 94 |
|
function migrate($OSCOM_PayPal) { |
| 95 |
|
$is_payflow = false; |
catalog/includes/apps/paypal/modules/EC/EC.php 1 location
|
@@ 74-92 (lines=19) @@
|
| 71 |
|
return $this->doMigrationCheck($this->_pm_code) || $this->doMigrationCheck($this->_pm_pf_code); |
| 72 |
|
} |
| 73 |
|
|
| 74 |
|
function doMigrationCheck($class) { |
| 75 |
|
if ( file_exists(DIR_FS_CATALOG . 'includes/modules/payment/' . $class . '.php') ) { |
| 76 |
|
if ( !class_exists($class) ) { |
| 77 |
|
include(DIR_FS_CATALOG . 'includes/modules/payment/' . $class . '.php'); |
| 78 |
|
} |
| 79 |
|
|
| 80 |
|
$module = new $class(); |
| 81 |
|
|
| 82 |
|
if ( isset($module->signature) ) { |
| 83 |
|
$sig = explode('|', $module->signature); |
| 84 |
|
|
| 85 |
|
if ( isset($sig[0]) && ($sig[0] == 'paypal') && isset($sig[1]) && ($sig[1] == $class) && isset($sig[2]) ) { |
| 86 |
|
return version_compare($sig[2], 4) >= 0; |
| 87 |
|
} |
| 88 |
|
} |
| 89 |
|
} |
| 90 |
|
|
| 91 |
|
return false; |
| 92 |
|
} |
| 93 |
|
|
| 94 |
|
function migrate($OSCOM_PayPal) { |
| 95 |
|
$is_payflow = false; |
catalog/includes/apps/paypal/modules/HS/HS.php 1 location
|
@@ 69-89 (lines=21) @@
|
| 66 |
|
} |
| 67 |
|
} |
| 68 |
|
|
| 69 |
|
function canMigrate() { |
| 70 |
|
$class = $this->_pm_code; |
| 71 |
|
|
| 72 |
|
if ( file_exists(DIR_FS_CATALOG . 'includes/modules/payment/' . $class . '.php') ) { |
| 73 |
|
if ( !class_exists($class) ) { |
| 74 |
|
include(DIR_FS_CATALOG . 'includes/modules/payment/' . $class . '.php'); |
| 75 |
|
} |
| 76 |
|
|
| 77 |
|
$module = new $class(); |
| 78 |
|
|
| 79 |
|
if ( isset($module->signature) ) { |
| 80 |
|
$sig = explode('|', $module->signature); |
| 81 |
|
|
| 82 |
|
if ( isset($sig[0]) && ($sig[0] == 'paypal') && isset($sig[1]) && ($sig[1] == $class) && isset($sig[2]) ) { |
| 83 |
|
return version_compare($sig[2], 4) >= 0; |
| 84 |
|
} |
| 85 |
|
} |
| 86 |
|
} |
| 87 |
|
|
| 88 |
|
return false; |
| 89 |
|
} |
| 90 |
|
|
| 91 |
|
function migrate($OSCOM_PayPal) { |
| 92 |
|
if ( defined('MODULE_PAYMENT_PAYPAL_PRO_HS_GATEWAY_SERVER') ) { |