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/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') ) { |
catalog/includes/apps/paypal/modules/DP/DP.php 1 location
|
@@ 78-96 (lines=19) @@
|
75 |
|
return $this->doMigrationCheck($this->_pm_code) || $this->doMigrationCheck($this->_pm_pf_code); |
76 |
|
} |
77 |
|
|
78 |
|
function doMigrationCheck($class) { |
79 |
|
if ( file_exists(DIR_FS_CATALOG . 'includes/modules/payment/' . $class . '.php') ) { |
80 |
|
if ( !class_exists($class) ) { |
81 |
|
include(DIR_FS_CATALOG . 'includes/modules/payment/' . $class . '.php'); |
82 |
|
} |
83 |
|
|
84 |
|
$module = new $class(); |
85 |
|
|
86 |
|
if ( isset($module->signature) ) { |
87 |
|
$sig = explode('|', $module->signature); |
88 |
|
|
89 |
|
if ( isset($sig[0]) && ($sig[0] == 'paypal') && isset($sig[1]) && ($sig[1] == $class) && isset($sig[2]) ) { |
90 |
|
return version_compare($sig[2], 4) >= 0; |
91 |
|
} |
92 |
|
} |
93 |
|
} |
94 |
|
|
95 |
|
return false; |
96 |
|
} |
97 |
|
|
98 |
|
function migrate($OSCOM_PayPal) { |
99 |
|
$is_payflow = false; |
catalog/includes/apps/paypal/modules/PS/PS.php 1 location
|
@@ 73-93 (lines=21) @@
|
70 |
|
} |
71 |
|
} |
72 |
|
|
73 |
|
function canMigrate() { |
74 |
|
$class = $this->_pm_code; |
75 |
|
|
76 |
|
if ( file_exists(DIR_FS_CATALOG . 'includes/modules/payment/' . $class . '.php') ) { |
77 |
|
if ( !class_exists($class) ) { |
78 |
|
include(DIR_FS_CATALOG . 'includes/modules/payment/' . $class . '.php'); |
79 |
|
} |
80 |
|
|
81 |
|
$module = new $class(); |
82 |
|
|
83 |
|
if ( isset($module->signature) ) { |
84 |
|
$sig = explode('|', $module->signature); |
85 |
|
|
86 |
|
if ( isset($sig[0]) && ($sig[0] == 'paypal') && isset($sig[1]) && ($sig[1] == $class) && isset($sig[2]) ) { |
87 |
|
return version_compare($sig[2], 4) >= 0; |
88 |
|
} |
89 |
|
} |
90 |
|
} |
91 |
|
|
92 |
|
return false; |
93 |
|
} |
94 |
|
|
95 |
|
function migrate($OSCOM_PayPal) { |
96 |
|
if ( defined('MODULE_PAYMENT_PAYPAL_STANDARD_GATEWAY_SERVER') ) { |