X-Cart:Setting Up Cybersource for previous versions (4.0.x, 4.1.x, 4.2.x)

From X-Cart 4 Classic
Revision as of 13:02, 9 December 2009 by Admin (talk | contribs) (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…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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) 13. 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.

14. 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 17. Enter you Cybersource merchant ID 18. 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

19. 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.