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

Tips for a smooth Install of X-Payments

 
Reply
   X-Cart forums > X-Payments > X-Payments issues & questions
 
Thread Tools
  #1  
Old 07-04-2010, 04:31 AM
  DogByteMan's Avatar 
DogByteMan DogByteMan is offline
 

X-Adept
  
Join Date: Mar 2003
Posts: 833
 

Default Tips for a smooth Install of X-Payments

First, you must meet the specified server requirements.

Tip 1: Unarchive files in a new directory such as /my_pay_dir/
After unarchived, copy down contents of /my_pay_dir/xpayments/ to /my_pay_dir/ and delete /xpayments/.

If you instead decide to unarchive at root, be sure to backup your robots.txt file.

Tip 2: Wrap all entries in config with ""

Examples: host="localhost", unix_socket="", host="mail.yourdomain.com", web="https://yourdomain.com/my_pay_dir/", and yes even auth="LOGIN"

Tip 3: the real directions for:

8. IMPORTANT. Default codes contained in <lib/XPay/Model/Codebook.php> must be changed after the installation is done. Use maintenance script regen-codebook.php to generate a new codebook.

is

(Must be ran from shell)
3. Run the script with a -run flag (php regen-codebook.php -run <system path to X-Payments>).
4. If the script failed, copy the file <lib/XPay/Model/Codebook.prev.php> to the file <lib/XPay/Model/Codebook.php>, restore the database from the saved dump and repeat step 3.
5. If the script completed successfully delete the database dump file and the <lib/XPay/Model/Codebook.prev.php> file.

Tip 4: I have posted how to install X-Payments Connector for X-Cart 4.1.12 here

Please add your contributions too
__________________
Dedicated Server provided by EWD Hosting
X-Cart version 4.1.12
PHP 5.3.2
MySQL server 5.0.87-community
Operation system Linux
Perl 5.008008
dogbytecomputer.com
Reply With Quote

The following 2 users thank DogByteMan for this useful post:
Asiaplay (07-05-2010), gb2world (07-04-2010)
  #2  
Old 07-04-2010, 06:00 AM
  DogByteMan's Avatar 
DogByteMan DogByteMan is offline
 

X-Adept
  
Join Date: Mar 2003
Posts: 833
 

Default Re: Tips for a smooth Install of X-Payments

Tips for configuring the connector.

In your X-Cart under modules click configure for X-Payments Connector

Store ID: < This is the store ID that was assigned when you set up the store in X-Payments >

X-Payments URL: https://domain where X-Payments is/X-Payments Directory (NO Trailing /)(must be https)

Public key: < This is the public key that was assigned when you set up the store in X-Payments >

Private key: < This is the private key that was assigned when you set up the store in X-Payments >

Private key password: < This is the private key password that was assigned when you set up the store in X-Payments >

IP addresses for X-Payments callbacks: IP of server hosting X-Payments
__________________
Dedicated Server provided by EWD Hosting
X-Cart version 4.1.12
PHP 5.3.2
MySQL server 5.0.87-community
Operation system Linux
Perl 5.008008
dogbytecomputer.com
Reply With Quote

The following user thanks DogByteMan for this useful post:
gb2world (07-04-2010)
  #3  
Old 06-18-2012, 05:20 AM
  photo's Avatar 
photo photo is offline
 

X-Wizard
  
Join Date: Feb 2006
Location: UK
Posts: 1,146
 

Default Re: Tips for a smooth Install of X-Payments

Quote:
Originally Posted by DogByteMan

8. IMPORTANT. Default codes contained in <lib/XPay/Model/Codebook.php> must be changed after the installation is done. Use maintenance script regen-codebook.php to generate a new codebook.

is

(Must be ran from shell)
3. Run the script with a -run flag (php regen-codebook.php -run <system path to X-Payments>).

my script is in a folder named xp, I tried the following commands but to no avail.

cd public_html

and then

php regen-codebook.php -run xp

Any idea where I am going wrong?

Thanks
__________________
v4.1.10
In Dev v4.5.x


"If you don't keep an eye on your business, someone else will."
Reply With Quote
  #4  
Old 06-18-2012, 06:31 AM
  photo's Avatar 
photo photo is offline
 

X-Wizard
  
Join Date: Feb 2006
Location: UK
Posts: 1,146
 

Default Re: Tips for a smooth Install of X-Payments

I also tried,

Code:
php '''regen-codebook.php''' -run <'''public_html/xp'''>

and got the following error.

Quote:
syntax error near unexpected token 'newline'

What the samhill does that mean?
__________________
v4.1.10
In Dev v4.5.x


"If you don't keep an eye on your business, someone else will."
Reply With Quote
  #5  
Old 06-21-2012, 06:07 AM
  photo's Avatar 
photo photo is offline
 

X-Wizard
  
Join Date: Feb 2006
Location: UK
Posts: 1,146
 

Default Re: Tips for a smooth Install of X-Payments

For anyone who may need help with running the regen-codebook.php file from the command line, the following is what worked for me.

1. The server uses Cpanel
2. The xpayments folder is located at /home/mysite/public_html/xpayments
3. First you need to be in the folder /home/mysite/public_html/xpayments to run the script, to do this use the following command,
Code:
cd public_html/xpayments
4. Now to make sure you are in the proper folder use the following command,
Code:
pwd
This will show you exactly what folder you are in, if you are now indeed in /home/mysite/public_html/xpayments then use the following command,
Code:
php regen-codebook.php -run /home/mysite/public_html/xpayments
5. If all went well, the script should of run and you will receive 3 emails with your new pins and activate account and setup passwords link.

notes:
a) Use at your own risk, if your not confident using shell it would be best to open a ticket with QT to do this for you.
b) Make sure to edit
mysite above with the name of your cpanel site name.


__________________
v4.1.10
In Dev v4.5.x


"If you don't keep an eye on your business, someone else will."
Reply With Quote

The following user thanks photo for this useful post:
ambal (06-21-2012)
  #6  
Old 06-23-2012, 06:08 AM
 
gblair gblair is offline
 

Advanced Member
  
Join Date: Jul 2008
Posts: 69
 

Default Re: Tips for a smooth Install of X-Payments

My issue with the regen-codebook turned out to be my webhost version of SAPI was set to CGI rather than the required CLI

If you get "SAPI is not CLI" - check with your host.
Mine did have both versions installed, but I had to specifically call the CLI version.
__________________
paperwhimsy.com
Gale Blair
4.1.10
Reply With Quote

The following user thanks gblair for this useful post:
ambal (06-24-2012)
  #7  
Old 07-10-2012, 08:31 PM
 
snowman99 snowman99 is offline
 

Member
  
Join Date: Feb 2007
Posts: 21
 

Default Re: Tips for a smooth Install of X-Payments

Is this for real? I installed Xpayments and I can login just fine. The codes work. Do I need to perform a code regen? Why? And has this been vetted by QT? Something smells fishy here. I've never seen such clumsy documentation of an important application. If this was for real, you would think it would have been added to the README file in the install.
__________________
X-cart Ver: 4.7.10 (Linux/Apache)
XCartMods Ultra Template
BCSE Authorize DPM Module
CDSEO 2.2.0
CDSEO Pro Admin
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 04:59 AM.

   

 
X-Cart forums © 2001-2020