View Single Post
  #6  
Old 06-22-2012, 10:02 AM
 
AMMoyer AMMoyer is offline
 

Senior Member
  
Join Date: Nov 2008
Posts: 150
 

Default Re: XP not showing in Payments Methods List

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?
__________________
Adam
X-Cart Gold 4.4.5 - Live
X-Cart Gold 4.1.11 - Retired
X-Payments 1.0.4
CDSEO Pro
EWD Hosting
Reply With Quote