X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   X-Payments issues & questions (https://forum.x-cart.com/forumdisplay.php?f=50)
-   -   test store store xpayments - Responce is not Valid (https://forum.x-cart.com/showthread.php?t=64122)

a1deano 06-28-2012 03:17 AM

test store store xpayments - Responce is not Valid
 
Hi could anyone advise please i am setting up a new store using V4.5.1 - www.mysite.com/xcart

However when i test xpayments i get this error -


<?php die(); ?>
[28-Jun-2012 06:11:13] (shop: 28-Jun-2012 06:11:13) xpay_connector message:
Response is not valid.
Response headers: ''
Response:
Request URI: /xcart/admin/configuration.php?option=XPayments_Connector&mode= test_module
Backtrace:
/home/mysite/public_html/xcart/modules/XPayments_Connector/xpc_func.php:1842
/home/mysite/public_html/xcart/modules/XPayments_Connector/xpc_func.php:1542
/home/mysite/public_html/xcart/modules/XPayments_Connector/xpc_func.php:1051
/home/mysite/public_html/xcart/modules/XPayments_Connector/xpc_admin.php:169
/home/mysite/public_html/xcart/admin/configuration.php:120
-------------------------------------------------

On my main store xpayments is working correct ive checked in xpayments admin side and all seems setup correct, can anyone advise please.

Thanks Dean

joss 06-28-2012 03:25 AM

Re: test store store xpayments - Responce is not Valid
 
Check, whether the connections from the store are possible to X-Payments. You may do it through Maintenance -> Tools, find the "active" link in the list of the HTTPS bouncers and in the popup window enter the URL of your X-Payments by the following pattern:

https://www.example.com:443/xpayments-dir/api.php

Where www.example.com is the domain name of the server where X-Payments is isntalled, 443 - stadard port for HTTPS connections, xpayments-dir directory where X-Payments is installed and api.php is a scrip which receives the connections from store.

Alternatively, you may upload a test PHP script on your server with the following content:

Quote:

<?php

$ch = curl_init();

curl_setopt($ch, CURLOPT_URL, "https://www.example.com/xpayments-dir/api.php");
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);

$response = curl_exec($ch);

echo htmlspecialchars($response);

?>

Again, https://www.example.com/xpayments-dir/api.php should be the URL of X-Payments.

In both cases you should see something in the outupt, i.e. the response from the server should be shown.

If the response is empty or you see LibCURL error, contact uyor hosting support or the server admins.

a1deano 06-28-2012 04:13 AM

Re: test store store xpayments - Responce is not Valid
 
Hi thanks for your help I have xpayments on a separate server to comply with xpayments, there is already api.php when i test it i.e

www.mysite/xpayments/api.php

I get nothing page not found, but on my main site xpayments is working correct? QT did go in and and change some files as I had problems setting up cron for it they did change a couple of files so wondering if this the issue, the file they updated were -

<xpay-dir>/top.inc.php
- <xpay-dir>/lib/XPay/Controller/Cron/Main.php
- <xpay-dir>/lib/XPay/Model/Payment.php

a1deano 06-29-2012 12:34 PM

Re: test store store xpayments - Responce is not Valid
 
QT any help on this please i did put in a support ticket but was told to ask here - Thanks

a1deano 07-02-2012 04:11 AM

Re: test store store xpayments - Responce is not Valid
 
I think this must be a bug in v4.5.1 as i copied over all the setting and keys from my main site into the test site /xcart and still I get -

Response is not valid.
Check logs.

joss 07-02-2012 07:43 AM

Re: test store store xpayments - Responce is not Valid
 
Could you run the tests mentioned in post #2: http://forum.x-cart.com/showpost.php?p=342007&postcount=2 and let us know the results?

a1deano 07-02-2012 07:53 AM

Re: test store store xpayments - Responce is not Valid
 
Nothing happens i just get a blank page, so strange why xpayments works fine in root on my main site yet test site in folder /xcart xpayments doesn't work ive pm'ed you the url

Thanks

a1deano 07-06-2012 03:36 AM

Re: test store store xpayments - Responce is not Valid
 
Ok further problems now :( ive just had worldpay setup so iam testing etc on my live site v4.4.4 but now i am getting same issue when i test module -

Response is not valid.
Check logs.

This xpayments is a right pain :(

a1deano 07-07-2012 05:53 AM

Re: test store store xpayments - Responce is not Valid
 
Ok what i found with this error is when you copy the configuration bundle it was copy the url correct it was actually missing part of it out, hence was creating and error....


All times are GMT -8. The time now is 04:02 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.