Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

test store store xpayments - Responce is not Valid

 
Reply
   X-Cart forums > X-Payments > X-Payments issues & questions
 
Thread Tools
  #1  
Old 06-28-2012, 03:17 AM
  a1deano's Avatar 
a1deano a1deano is offline
 

X-Adept
  
Join Date: Oct 2004
Posts: 745
 

Default 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
__________________
--------------
V4.6.1
xcartmods - Reboot Template

X-cart - X-PDF

Altered Cart - Checkout one
Reply With Quote
  #2  
Old 06-28-2012, 03:25 AM
 
joss joss is offline
 

X-Cart team
  
Join Date: Feb 2009
Posts: 60
 

Default 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.
__________________
joss@x-cart.com
Reply With Quote
  #3  
Old 06-28-2012, 04:13 AM
  a1deano's Avatar 
a1deano a1deano is offline
 

X-Adept
  
Join Date: Oct 2004
Posts: 745
 

Default 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
__________________
--------------
V4.6.1
xcartmods - Reboot Template

X-cart - X-PDF

Altered Cart - Checkout one
Reply With Quote
  #4  
Old 06-29-2012, 12:34 PM
  a1deano's Avatar 
a1deano a1deano is offline
 

X-Adept
  
Join Date: Oct 2004
Posts: 745
 

Default 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
__________________
--------------
V4.6.1
xcartmods - Reboot Template

X-cart - X-PDF

Altered Cart - Checkout one
Reply With Quote
  #5  
Old 07-02-2012, 04:11 AM
  a1deano's Avatar 
a1deano a1deano is offline
 

X-Adept
  
Join Date: Oct 2004
Posts: 745
 

Default 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.
__________________
--------------
V4.6.1
xcartmods - Reboot Template

X-cart - X-PDF

Altered Cart - Checkout one
Reply With Quote
  #6  
Old 07-02-2012, 07:43 AM
 
joss joss is offline
 

X-Cart team
  
Join Date: Feb 2009
Posts: 60
 

Default 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?
__________________
joss@x-cart.com
Reply With Quote
  #7  
Old 07-02-2012, 07:53 AM
  a1deano's Avatar 
a1deano a1deano is offline
 

X-Adept
  
Join Date: Oct 2004
Posts: 745
 

Default 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
__________________
--------------
V4.6.1
xcartmods - Reboot Template

X-cart - X-PDF

Altered Cart - Checkout one
Reply With Quote
  #8  
Old 07-06-2012, 03:36 AM
  a1deano's Avatar 
a1deano a1deano is offline
 

X-Adept
  
Join Date: Oct 2004
Posts: 745
 

Default 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
__________________
--------------
V4.6.1
xcartmods - Reboot Template

X-cart - X-PDF

Altered Cart - Checkout one
Reply With Quote
  #9  
Old 07-07-2012, 05:53 AM
  a1deano's Avatar 
a1deano a1deano is offline
 

X-Adept
  
Join Date: Oct 2004
Posts: 745
 

Default 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....
__________________
--------------
V4.6.1
xcartmods - Reboot Template

X-cart - X-PDF

Altered Cart - Checkout one
Reply With Quote
Reply
   X-Cart forums > X-Payments > X-Payments issues & questions


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 12:49 AM.

   

 
X-Cart forums © 2001-2020