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
(Created page with '1. Download ics binary from the File Area of this helpdesk (section My Files) 2. login to your server using SSH/FTP 3. go to payment directory of your x-cart 4. create folder ics…')
 
Line 1: Line 1:
 
1. Download ics binary from the File Area of this helpdesk (section My Files)
 
1. Download ics binary from the File Area of this helpdesk (section My Files)
 +
 
2. login to your server using SSH/FTP
 
2. login to your server using SSH/FTP
 +
 
3. go to payment directory of your x-cart
 
3. go to payment directory of your x-cart
 +
 
4. create folder ics (mkdir ics)
 
4. create folder ics (mkdir ics)
 +
 
5. go to ics folder (cd ics)
 
5. go to ics folder (cd ics)
 +
 
6. create directory bin
 
6. create directory bin
 +
 
7. upload ics binary into this bin folder (/payment/ics/bin)
 
7. upload ics binary into this bin folder (/payment/ics/bin)
 +
 
8. make the file executable (chmod 755 /payment/ics/bin/ics)
 
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)
 
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
 
10. go to keys folder
12. upload ecert binary (certificate generation binary from Cybersource site) into keys folder.
+
 
You can download ecert binary at
+
12. upload ecert binary (certificate generation binary from Cybersource site) into keys folder. You can download ecert binary at http: //apps.cybersource.com/library/downloads/Additional_Downloads/Update_to_ECert_Ap plication/ecert-linux-3.4.16.tar.gz
http: //apps.cybersource.com/library/downloads/Additional_Downloads/Update_to_ECert_Ap plication/ecert-linux-3.4.16.tar.gz
+
 
 
13. grant executable permissions for the ecert file (chmod 755 ecert)
 
13. grant executable permissions for the ecert file (chmod 755 ecert)
13. run certificate generation process
 
  
cd /payment/ics/keys
+
14. run certificate generation process
./ecert -path ./
+
 
 +
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.
 
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.
Line 24: Line 34:
 
For example, upload a script to payment/ics/keys folder (file example.php)
 
For example, upload a script to payment/ics/keys folder (file example.php)
  
<?
+
<?
system("./ecert -path ./ 2&bt;&1;");
+
system("./ecert -path ./ 2&bt;&1;");
?>
+
?>
  
 
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.
  
14. login into admin area of your x-cart
+
15. login into admin area of your x-cart
15. open Payment methods page, add Cybersource payment method to the list of active methods
+
 
16. Open cybersource configuration page
+
16. open Payment methods page, add Cybersource payment method to the list of active methods
17. Enter you Cybersource merchant ID
+
 
18. Enter full path to the payment/ics folder on your server.
+
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
 
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
 
You will find path to x-cart directory on Summary page of the admin area as Environment component variable: X-Cart directory
  
19. Enter server name: ics2.ic3.com Port: 80
+
20. Enter server name: ics2.ic3.com Port: 80
20. Upload cc_csrc.php file from the File Area into payment folder of your x-cart.
+
 
21. Try to make a transaction using Cybersource payment method.
+
21. Upload cc_csrc.php file from the File Area into payment folder of your x-cart.
 +
 
 +
22. Try to make a transaction using Cybersource payment method.

Revision as of 19:09, 23 December 2009

1. Download ics binary from the File Area of this helpdesk (section My Files)

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 at http: //apps.cybersource.com/library/downloads/Additional_Downloads/Update_to_ECert_Ap plication/ecert-linux-3.4.16.tar.gz

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. Upload cc_csrc.php file from the File Area into payment folder of your x-cart.

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