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

X-Payments transfer to other server with upgraded store
 
Reply
   X-Cart forums > X-Payments > X-Payments issues & questions
 
Thread Tools
  #1  
Old 09-27-2014, 02:05 AM
  vasilis's Avatar 
vasilis vasilis is online now
 

X-Adept
  
Join Date: Feb 2009
Posts: 733
 

Default X-Payments transfer to other server with upgraded store

I have searched all over, but I haven't found any related info concerning transferring an x-payments installation to a different server, with an upgraded x-cart store.

I am going to upgrade a 4.4.5 store to 4.6.4 and it already uses X-Payments. The upgraded store will be located in a new server. The current x-payments is hosted in the xcart root directory. I have the following questions:
  • Will I need to re-install and re-configure x-payments in the new server, or I just copy the files and database and just change any related settings, concerning the new server?
  • Does the fact that x-payments will be deployed in the 4.6.4 upgraded store make any difference in the required steps?
  • In X-Payments Connector admin page, there is a 'API 1.1 version is supported' line. Does this mean that the installed x-payments version is 1.1 and if not, how do I check the version of x-payments?
  • Quote:
    Those who installed and started using X-Payments v1.0 can just continue doing so for any time ahead as it is acceptable for existing deployments. New deployments of X-Payments v1.0 are not allowed after October 28, 2013 due to the PCI Council regulations for PA-DSS certified applications, and we have already stopped selling this version.
    So, I guess it is not required to upgrade the current x-payments, if I don't need to use the new x-payments features related with saving customers' cc data, or for recurring billing. Is this correct?
    On the other hand, I read the following excerpt in this thread:
    Quote:
    So for everyone upgrading to 4.6.4 and using X-Payments - you are forced to upgrade X-Payments to its latest version 2.1.1 otherwise the new Connector will just not work properly.
    Does this hold only if you want to use the new features referred above? (
    saving customers' cc data, or for recurring billing)
I appreciate any tips.
Reply With Quote
  #2  
Old 09-27-2014, 04:58 AM
  totaltec's Avatar 
totaltec totaltec is offline
 

X-Guru
  
Join Date: Jan 2007
Location: Louisville, KY USA
Posts: 5,823
 

Default Re: X-Payments transfer to other server with upgraded store

I would upgrade X-payments, it's easy as long as the server is setup properly.

You should have no trouble copying it and just changing the settings. No need to re-install.
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey

XcartGuru
X-cart Tutorials | X-cart 5 Tutorials

Check out the responsive template for X-cart.
Reply With Quote

The following 2 users thank totaltec for this useful post:
ambal (09-29-2014), vasilis (09-27-2014)
  #3  
Old 09-27-2014, 08:33 AM
 
BrianY BrianY is offline
 

Advanced Member
  
Join Date: Nov 2011
Location: Georgia, USA
Posts: 74
 

Default Re: X-Payments transfer to other server with upgraded store

Quote:
Originally Posted by vasilis
The current x-payments is hosted in the xcart root directory.
I believe that X-Payments can be on the same server, but in it's own Virtual Private Server area with it's own SSL.

Quote:
Originally Posted by vasilis
[*]In X-Payments Connector admin page, there is a '[i]API 1.1 version is supported' line. Does this mean that the installed x-payments version is 1.1 and if not, how do I check the version of x-payments?
Not sure if this has anything to do with your version, but I recently upgraded my X-Payments and found the current version in: public_facing root_folder_of_your_xpayments/config/config.ini.php It is very near the bottom of the file.
__________________
Brian
X-Cart 4.7.3
Reply With Quote
  #4  
Old 09-27-2014, 10:46 AM
  vasilis's Avatar 
vasilis vasilis is online now
 

X-Adept
  
Join Date: Feb 2009
Posts: 733
 

Default Re: X-Payments transfer to other server with upgraded store

Quote:
Not sure if this has anything to do with your version, but I recently upgraded my X-Payments and found the current version in: public_facing root_folder_of_your_xpayments/config/config.ini.php It is very near the bottom of the file.
No version referred in the config.ini.php - I found a version reference in the README file of the /xpayments directory. In the x-payments upgrade instructions:
Quote:
The config/config.ini.php of X-Payments 1.0.3 and 1.0.4 does not contain the information upgrade.php expects to find there
Reply With Quote
  #5  
Old 09-29-2014, 04:39 AM
  ambal's Avatar 
ambal ambal is offline
 

X-Cart team
  
Join Date: Sep 2002
Posts: 4,106
 

Default Re: X-Payments transfer to other server with upgraded store

Quote:
Originally Posted by vasilis
The current x-payments is hosted in the xcart root directory.

And this is wrong as X-Payments must be installed separately in its own hosting account/VPS/server in order to be PCI compliant.
See http://help.x-cart.com/index.php?title=X-Cart_Payments:PCI_DSS_implementation_guide

We do not recommend to install X-Payments in the same hosting space/account where you run your X-Cart shop or other software as X-Payments can be compromised via them.

Quote:
Originally Posted by vasilis
I have the following questions:
  • Will I need to re-install and re-configure x-payments in the new server, or I just copy the files and database and just change any related settings, concerning the new server?


You may need to adjust X-Payments config.ini.php file and shop settings in X-Payments dashboard if the new server has other IP address/domain name. Also, you may need to re-deploy configuration bundle in connected X-Cart stores due to the same reason.



Quote:
Originally Posted by vasilis
  • Does the fact that x-payments will be deployed in the 4.6.4 upgraded store make any difference in the required steps?


X-Cart & X-Payments connection routine changed a lot in 4.6.4. Unfortunately, we haven't updated our user manual article about that yet. I am preparing a video that explains the new connection routine.


Quote:
Originally Posted by vasilis
  • In X-Payments Connector admin page, there is a 'API 1.1 version is supported' line. Does this mean that the installed x-payments version is 1.1 and if not, how do I check the version of x-payments?


Nope, that's X-Payments API version - see http://help.x-cart.com/index.php?title=X-Payments:API
Right now there are API versions 1.1, 1.2, 1.3 which are implemented in different X-Payments versions.
The latest version of X-Payments v1.x is 1.0.6, the latest (at the moment) version of X-Payments 2.x is 2.1.1


New X-Cart v4.6.4 connector for X-Payments defines API version automatically.


Quote:
So, I guess it is not required to upgrade the current x-payments, if I don't need to use the new x-payments features related with saving customers' cc data, or for recurring billing. Is this correct?

If it is not a new deployment of X-Payments for a new web-site/business you can keep using your v1.x version.



Quote:
  • On the other hand, I read the following excerpt in this thread:
    Does this hold only if you want to use the new features referred above? (saving customers' cc data, or for recurring billing)

Your new X-Cart 4.6.4 will work with your old X-Payments v1.x (i.e. it will process payments for orders of your shoppers) but it will not support new features of X-Payments 2.x. Also some of the usability improvements we added into new versions of X-cart connectors and X-Payments may not work either as they relay on using certain API calls we added into X-Payments v2.1.1.
__________________
Sincerely yours,
Alex Mulin
VP of business development for X-Cart
X-Payments project manager
Reply With Quote

The following 2 users thank ambal for this useful post:
totaltec (09-29-2014), vasilis (09-29-2014)
  #6  
Old 10-03-2014, 02:11 PM
  vasilis's Avatar 
vasilis vasilis is online now
 

X-Adept
  
Join Date: Feb 2009
Posts: 733
 

Default Re: X-Payments transfer to other server with upgraded store

Would it be feasible to run x-payments upgrade in my local WAMP server (Windows 7 platform), using something like CopSSH (OpenSSH for Windows) and eventually upload it's code and database to remote server? I guess, during final data sync, there would be both x-cart store database and x-payments database sync, repeating both upgrades, after closing live store.
That would be if ssh weren't available in remote server.

As an alternative, could x-payments upgrade be run through php script?
Reply With Quote
  #7  
Old 10-06-2014, 12:28 AM
  ambal's Avatar 
ambal ambal is offline
 

X-Cart team
  
Join Date: Sep 2002
Posts: 4,106
 

Default Re: X-Payments transfer to other server with upgraded store

> As an alternative, could x-payments upgrade be run through php script?

Actually this is what you need to do. Every owner of X-Payments 2.x downloadable license gets access to upgrade script that makes X-Payments upgrade process a lot easier. If you have X-Payments 2.x downloadable license - just check your File Area at https://secure.x-cart.com

Btw, users of hosted X-Payments accounts do not need to worry about doing upgrade themselves. They can just send us a ticket requesting to do such upgrade free of charge.
__________________
Sincerely yours,
Alex Mulin
VP of business development for X-Cart
X-Payments project manager

Last edited by ambal : 10-07-2014 at 12:37 AM.
Reply With Quote
  #8  
Old 10-28-2014, 03:06 AM
  vasilis's Avatar 
vasilis vasilis is online now
 

X-Adept
  
Join Date: Feb 2009
Posts: 733
 

Default Re: X-Payments transfer to other server with upgraded store

Ok, I have moved the x-payments code and database to it's separate hosting account, in the new server, with it's own SSL and trying to connect it with the upgraded x-cart store.

In the IP addresses for X-Payments callbacks (optional) of the 'X-Payments Connector' page I have already set the IP address of the new server. Also, I have updated the 'config.ini.php' file with the new database name, database user and database password (the database is the same as the one in the old server).

There are 3 issues:
1) I cannot login in the migrated x-payments back-end (https://<new x-payments hosting domain>/xpayments/admin.php), getting the usual page:
Quote:
Internal error The requested action cannot be performed. See logs for detail
The log error is:
Quote:
ERROR [2014-28-10 06:30:49] User: unknown; IP: 193.92.7.229 Zone: Core Code: DATABASE_UNABLE_TO_CONNECT ( 238 ) Unable to connect to the database. Affected systems: Core/Database.php file (143:assert); Core/Base/Singleton.php file (138:__construct); Core/RequirementsChecker.php file (108:getInstance); Application.php file (136:check); /home/<user>/public_html/xpayments/admin.php file (26:run)
2) In the X-Payments Connector page of the upgraded store I get the message:

Quote:
Failed to meet environment requirements

X-Payments Connector callback script https://<new store IP address>/shop/payment/cc_xpc.php is not reachable by X-Payments (check X-Cart logs for details). Your checkout will not work untill you make it accessible by X-Payments. See Troubleshooting for more information. Once you've fixed this issue click here to perform check again.

3) In the 'Payment methods' tab of the migrated X-Payments Connector page, in the text:
Quote:
Configuring of the payment methods presented possible in the X-Payments backoffice only. In case of any problems you need to review the X-Payments Connector module settings and if it's ok, review payment configurations settings on the X-Payments side.
, the X-Payments backoffice link points to the x-payments old domain, instead of pointing to the new domain.

I guess, all these 3 issues are caused by the same culprit.

Have I missed some setting (for example, would I need to enter in the payment gateway account settings that is linked with x-payments and change the server path there?).
Do I need to do anything additional? I haven't upgraded x-payments, it is the original version (1.0.4) and trying to make it work with the upgraded store in the new server (as I have described in my previous posts).

Appreciate any help.
Reply With Quote
  #9  
Old 10-28-2014, 03:32 AM
  ambal's Avatar 
ambal ambal is offline
 

X-Cart team
  
Join Date: Sep 2002
Posts: 4,106
 

Default Re: X-Payments transfer to other server with upgraded store

Vasilis, it is really hard to say what it is wrong after you moved everything. I recommend you to get in touch with our techs via your HelpDesk account as investigation at your server is needed.
__________________
Sincerely yours,
Alex Mulin
VP of business development for X-Cart
X-Payments project manager
Reply With Quote
  #10  
Old 10-28-2014, 03:58 AM
  vasilis's Avatar 
vasilis vasilis is online now
 

X-Adept
  
Join Date: Feb 2009
Posts: 733
 

Default Re: X-Payments transfer to other server with upgraded store

I can imagine that, but is there any X-Payments migration documentation that refers to settings that need to be changed, in case the same X-Payments version is transferred to a different server? The x-cart store also is upgraded.
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 02:43 AM.

   

 
X-Cart forums © 2001-2018