Difference between revisions of "X-Cart:Setting Up Cybersource for previous versions (4.0.x, 4.1.x, 4.2.x)"

From X-Cart 4 Classic
Jump to: navigation, search
m
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
1. download ics binary from the File Area -> X-Cart -> X-Cart supporting files for prev versions -> Miscellaneous section of your {{QA}}
+
{{XC 4.0}}
  
2. login to your server using SSH/FTP
+
1. Download ics binary from the File Area -> X-Cart -> X-Cart supporting files for prev versions -> Miscellaneous section of your {{QA}}
  
3. go to payment directory of your x-cart
+
2. Login to your server using SSH/FTP
  
4. create folder ics (mkdir ics)
+
3. Go to payment directory of your x-cart
  
5. go to ics folder (cd ics)
+
4. Create folder ics (mkdir ics)
  
6. create directory bin
+
5. Go to ics folder (cd ics)
  
7. upload ics binary into this bin folder (/payment/ics/bin)
+
6. Create directory bin
  
8. make the file executable (chmod 755 /payment/ics/bin/ics)
+
7. Upload ics binary into this bin folder (/payment/ics/bin)
  
9. create a directory named keys in the payment/ics folder (/payment/ics/keys) and grant 777 permissions to the folder (chmod 777 /payment/ics/keys)
+
8. Make the file executable (chmod 755 /payment/ics/bin/ics)
  
10. go to keys folder
+
9. Create a directory named keys in the payment/ics folder (/payment/ics/keys) and grant 777 permissions to the folder (chmod 777 /payment/ics/keys)
  
12. upload ecert binary (certificate generation binary from Cybersource site) into keys folder. You can download ecert binary  (ECert Application linux v.5.0.0) at http://apps.cybersource.com/cgi-bin/pages/additional.cgi?kit=Update_to_ECert_Application
+
10. Go to keys folder
  
13. grant executable permissions for the ecert file (chmod 755 ecert)
+
12. Upload ecert binary (certificate generation binary from Cybersource site) into keys folder. You can download ecert binary  (ECert Application linux v.5.0.0) at http://apps.cybersource.com/cgi-bin/pages/additional.cgi?kit=Update_to_ECert_Application
  
14. run certificate generation process
+
13. Grant executable permissions for the ecert file (chmod 755 ecert)
 +
 
 +
14. Run certificate generation process
  
 
<pre>
 
<pre>
Line 44: Line 46:
 
And call this script from browser. If you see that certificate files were properly generated, you may proceed.
 
And call this script from browser. If you see that certificate files were properly generated, you may proceed.
  
15. login into admin area of your x-cart
+
15. Login into admin area of your x-cart
  
16. open Payment methods page, add Cybersource payment method to the list of active methods
+
16. Open Payment methods page, add Cybersource payment method to the list of active methods
  
 
17. Open cybersource configuration page
 
17. Open cybersource configuration page

Latest revision as of 19:08, 31 July 2012

X-Cart 4.0or above

1. Download ics binary from the File Area -> X-Cart -> X-Cart supporting files for prev versions -> Miscellaneous section of your X-Cart Account

2. Login to your server using SSH/FTP

3. Go to payment directory of your x-cart

4. Create folder ics (mkdir ics)

5. Go to ics folder (cd ics)

6. Create directory bin

7. Upload ics binary into this bin folder (/payment/ics/bin)

8. Make the file executable (chmod 755 /payment/ics/bin/ics)

9. Create a directory named keys in the payment/ics folder (/payment/ics/keys) and grant 777 permissions to the folder (chmod 777 /payment/ics/keys)

10. Go to keys folder

12. Upload ecert binary (certificate generation binary from Cybersource site) into keys folder. You can download ecert binary (ECert Application linux v.5.0.0) at http://apps.cybersource.com/cgi-bin/pages/additional.cgi?kit=Update_to_ECert_Application

13. Grant executable permissions for the ecert file (chmod 755 ecert)

14. Run certificate generation process

cd /payment/ics/keys
./ecert -path ./

Please note that to run the certificate generation utility you should be invoked from shell prompt of your server. If you do not have SSH access to your server, ask your hosting administrator to run the command for you.

Or just prepare general PHP script which executes PHP function system (http://php.net/system)

For example, upload a script to payment/ics/keys folder (file example.php)

<?
system("./ecert -path ./ 2&bt;&1;");
?>

And call this script from browser. If you see that certificate files were properly generated, you may proceed.

15. Login into admin area of your x-cart

16. Open Payment methods page, add Cybersource payment method to the list of active methods

17. Open cybersource configuration page

18. Enter you Cybersource merchant ID

19. Enter full path to the payment/ics folder on your server. For example, like this:

/home/user/xcart/payment/ics

You will find path to x-cart directory on Summary page of the admin area as Environment component variable: X-Cart directory

20. Enter server name: ics2.ic3.com Port: 80

21. Try to make a transaction using Cybersource payment method.