More info. I've confirmed that the XP: Paypal WPP Direct Payment data has been added to the XC table cc_processors.
After further investigation I've found where the array for the payment gateway is generated and tested the query. Works fine with XP Paypal option available, but the next line calls a function that appears to strip the XP Paypal option out of the array.
From payment_methods.php
PHP Code:
$cc_module_files = func_query("select * from $sql_tbl[ccprocessors] where paymentid='0' and processor<>'ps_paypal_pro.php' order by type,module_name");
if (!empty($active_modules['XPayments_Connector'])) {
$cc_module_files = xpc_filter_hidden_processors($cc_module_files);
}
From xpc_func.php
PHP Code:
function xpc_filter_hidden_processors($data)
{
global $xpc_paypal_dp_solutions;
foreach ($data as $k => $row) {
if ($row['processor'] == 'cc_xpc.php' && in_array($row['param08'], $xpc_paypal_dp_solutions)) {
unset($data[$k]);
}
}
return $data;
}
Why does it get stripped out?