From X-Cart 4 Classic
Revision as of 13:38, 6 April 2011 by Vladimir Gurinenko (talk | contribs) (Updated Re: BT 94803)
Jump to: navigation, search

Enabling and configuring SecureTrading payment method

1. Log in to the X-Cart Admin area.

2. Go to the Payment methods section (Administration menu -> Payment methods) and scroll down to the Payment gateways form.

3. Select SecureTrading on the drop-down list and then click the Add button. This adds SecureTrading to the list of available payment methods.

4. Click on the Configure link.

5. On the configuration page that appears, complete the required fields, as shown below, and then click Update to save the changes.

  • Login: Specify your login at securetrading.com
  • Order prefix: Specify a prefix by which you will be able to identify your transactions at securetrading.com (On securetrading.com, you can find specific transactions by a combination of the prefix and order ID).
  • ID number of the page set to use for a customer who goes to pay through SecureTrading: Specify a page ID number or leave empty to use the default set.
    You can have more than one payment page. To create additional pages, copy the template files to a new set of files with a number appended to the end of the filename (ID number). Customize the files as necessary, and upload them to the SecureTrading secure server. Use this field to specify the ID number of the page set you want to use.
  • Currency: Select a currency to be used for SecureTrading transactions.

Customizing the callback files

1. Download the file SecureTrading-setup.zip from the File area (subsection Miscellaneous) of your Support HelpDesk account and unzip it to a folder on your desktop.

2. Open the 'templates' subfolder of the SecureTrading folder and then edit the callback-f.txt and callback.txt files in that subfolder as described below:

2.1. Open the file.
2.2. Find the row with the URL definition:
url1   http://www.example.com/example_xcart_dir/payment/cc_securetrading.php
2.3 Replace that URL with:
url1   http://www.yoursite.com/your_xcart_dir/payment/cc_securetrading.php
Make sure that "url1" and the link are tab separated!

3. Upload all the files in the 'templates' subfolder to your SecureTrading account using the "File manager" section.

Note: Any files uploaded to your account previously must be replaced with these new files.