|
Search documentation: |
Help Advanced | |
Published 05/15/2002 |
![]() ![]() ![]() ![]() |
Chapter 2
Installing and Testing the CCC
This chapter describes the steps to install and configure the CCC for MSCS 2000. This chapter contains the following sections:
- System Requirements
- Installing the CCC for MSCS 2000
- Creating Your Certificate and Private Key
- Testing the CCC for MSCS 2000 in a Sample Store
System Requirements
To run the CyberSource CS2000 Component, your system must meet the following minimum requirements:
- Windows® 2000 Server or Windows® 2000 Advanced Server operating system
- Microsoft SQL Server 7.0 or later (SQL Server 2000 included)
- Intel® 400 MHz or higher Pentium® II-compatible CPU processor
- 256 MB RAM
- 100 MB of available hard-disk space to install services; additional space required for site content and databases
- NTFS-formatted hard-disk volume
- CD-ROM drive
- Network adapter card
- Windows 2000-compatible video graphics adapter
For optimal performance, your server must meet the following requirements:
- Windows 2000 Server or Windows 2000 Advanced Server
- Intel® Pentium III,® at least 500 MHZ processor
- 512 MB RAM
- Ultra Fast Wide SCSI hard drive or UltraATA hard drive
- 2.5 GB free space on hard drive
You must also install Commerce Server 2000 on your server. Commerce Server 2000 is available from Microsoft for use on the Windows 2000 operating system. For more information, see the Microsoft Commerce Server Web page at http://www.microsoft.com/commerceserver/.
To enable ICS2 support, your server must be able to connect to the Internet.
Installing the CCC for MSCS 2000
This section explains how to configure the CCC to communicate with the ICS2 server, using an evaluation account and merchant ID you receive when you register for the account.
Uninstalling a Previous Version of the CCC
If you are upgrading from a previous version of the CCC, you must uninstall that version before installing the new version.
Uninstalling the CCC
- From your Window's desktop, select Start > Settings > Control Panel.
- Double-click Add/Remove Programs.
- Select the CyberSource Component for CS2000, then click Add/Remove.
Installing CCC Version 4.0.2
Installing the CCC
- Download the file ccc-cs2k-2000-4_0_2.exe for the CyberSource CS2000 Component. You can save the file in any directory.
- Run the downloaded executable.
Note You must install the CCC on the computer that runs your Web server.
- To register the CyberSource CS2000 Component, select Start > Program > CyberSource CS2000 Component > Register Component.
- After you install the CyberSource CS2000 Component, it appears as a selection in the Order Processing Pipeline (OPP) when you run MSCS 2000 Pipeline Editor.
- To install the CyberSource Global Resource, do the following:
- On a machine that has an SQL server installed, select Start > Programs > CyberSource CS2000 Component > Install CyberSource Resource Type.
- You will be prompted for the SQL server hostname (and instance, if applicable), the login username, and password. Enter this information for the SQL server containing the MSCS_Admin database. If you have an SQL server instance, you must use the format "hostname\instance".
- On a machine that has Commerce Server and the CyberSource CS2000 Component installed, select Start > Programs > CyberSource CS2000 Component > Install CyberSource Global Resource.
- To verify that the CyberSource Global Resource ran successfully, run the Commerce Server Manager, and expand the Commerce Server Manager > Global Resources tree. A node called "CyberSource Commerce Component" should be present with a property called "Version" set to version 4.0.2.
- If you do not have your certificate and private key, then run Ecert. For more information, see Creating Your Certificate and Private Key.
- Verify that the CyberSource CS2000 Component communicates properly with the CyberSource ICS2 servers.
- Select Start > Programs > CyberSource CS2000 Component > Test an SCMP Transaction
- You will be prompted for your merchant_id, which you used to run Ecert.
- Bring up the pipeline editor, then load purchase.pcf from the Samples > Pipeline Files subdirectory from your installation.
- Double-click CyberSource Component for CS2000, then change merchant_id from the default setting to your merchant_id. Save your settings.
- Select Start > Programs > CyberSource CS2000 Component > Test the Commerce Component
The component is now installed on your system. Later, you will configure the component for use with your store (see Available CCC Services).
Creating Your Certificate and Private Key
CyberSource uses technology based on public key cryptography to securely exchange messages over the Internet. This technology requires each business partner to have a key pair: a public key, which is delivered in a certificate, and a private key. Before you can securely exchange messages with CyberSource, you must generate your certificate and private key.
You and CyberSource each have your own certificate, which you share, and your own private key, which you keep secret. CyberSource gives you the CyberSource certificate and keeps the CyberSource private key confidential. Likewise, you share your certificate with CyberSource and keep your private key secure.
Store your certificate and private key, along with the CyberSource certificate, on your servers where you installed the cassette. It is your responsibility to closely guard your private key, to ensure that your confidential information is not compromised.
To generate your certificate and private key, use the ECert application included with the cassette.
If you need to update an existing certificate and private key, see the CyberSource Certificate Update User's Guide, available on the CyberSource Small Business Support Center.
Generating Your Certificate and Private Key
- Change to the directory where you installed your client software.
- Select Start > Programs > Command Prompt, then change to the path for the directory where ECert is located.
- Run the ECert application. Type:
ecert <
merchant_id
>
- where
<
merchant_id
>
is your merchant ID.Note If you installed your client software somewhere other than the default directory, use the path option to designate your directory, as follows:
ecert <
merchant_id
> -path <
directory
>
where<
directory
>
is the name of the directory where your keys are stored. The path option takes first precedence, followed by the ICSPATH environment variable, and then comes the default path of [current drive
]:\opt\ics\keys
.- ECert will check for the default path of /opt/ics/keys and if it is not present, ECert will create these directories one by one. By default, ECert writes the files to [Current Drive]:\opt\ics\keys. You may specify an alternate directory by setting the environment variable ICSPATH to that directory.
- The syntax and options for the C and Perl versions of ECert are:
ecert <
merchant_id
>
[ -help ] [ -version ] [ -noprompt ] [ -update ]
[ -display ] [ -debug ] [ -path <
key_directory
> ]
[ -proxy <
url
> [ <
username
> ] [ <
password
> ] ]
[ -server <
ics_server_host
> <
ics_server_port
> ]
- Following are descriptions for the options:
- help — returns the ECert syntax.
- version — reports the version of ECert you have installed.
- noprompt —causes ECert to run without additional confirmation.
- update — updates your certificate and private key and your copy of the CyberSource certificate. You can only use this option if your certificate already exists in the CyberSource server and your site has gone live.
- display — displays your certificate and private key information, such as expiration date.
- debug — provides debugging information if you experience problems with the ECert application.
- path <keys_directory> — causes ECert to write the certificate and private key files to directory other than the default directory. The default is
[current drive]:\opt\ics\keys
. For example, if you are running Windows 2000 in Z:\drive and you run ECert from any directory in Z:\drive, your keys by default would be put in Z:\opt\ics\keys.- proxy <url> [ <username> ] [ <password> ] — causes ECert to use a proxy connection before connecting to an ICS server. The username and password are optional, but must be used together if included.
- server <ics_server_host> <ics_server_port> — causes ECert to use the host <ics_server_host> and port <ics_server_port> to connect to CyberSource. The default host server is
cert server
.- When the ECert application successfully runs, it writes the following files to disk:
merchant_id
.crt
— certificate filemerchant_id
.pvt
— private key filemerchant_id
.pwd
— password fileCyberSource_SJC_US.crt
— CyberSource certificate file
- By default, the files are written to the following directory:
<
current drive
>:\opt\ics\keys
Note The ECert application automatically sends a copy of your certificate (
.crt
) file, but not your private key (.pvt
) file, to the CyberSource ICS server. Always keep your private key secret.- Copy the CyberSource certificate, your certificate, your private key, and your password files to the
keys
directory of any server where the CCC for MSCS 2000 is installed. Your certificate (.crt
) and private key (.pvt
) files are paired and must be used together.After you run ECert to generate your certificate and private key, you can securely send transaction requests to the CyberSource test server. When you go live, you can securely send transaction requests to the CyberSource production server
You need to update your certificate and private key yearly to reduce the risk of having them compromised. For more information, go to the CyberSource Small Business Support Center, then click on "Managing Your Account" on the left navigation bar.
Testing the CCC for MSCS 2000 in a Sample Store
To test communication between MCSC 2000 and the CyberSource ICS2 server, create a sample store as follows.
Preparing Your Store for the CCC
- From your Window's desktop, select Start > Programs > Microsoft Commerce Server 2000 > Solution Sites.
- Unpup the retail site by double clicking the
Retail
store icon. It is recommended, but not required, that you accept all defaults suggested by the packager/unpackager ("PUP") program.- When the pup package has finished running, you must perform the following actions from your store's Business Desk:
- Load a sample catalog for the store. See Importing the Booksfull.xml Catalog File.
- Set shipping rates for the store. See Setting Shipping Rates.
- Extend the address book. See Extending the Address Book.
You now have a functional store. You can now add the CyberSource CS2000 Component to any of the pipeline files. In this test example, you will configure the pipeline component to authorize credit cards.
Configuring Your Store for the CCC
Configuring Authorize Credit Cards
- Using the pipeline editor, open the checkout.pcf pipeline file.
- Remove the Default Payment and Required Payment components.
- Right-click Payment stage.
- Select Insert Component.
- Select CyberSource Component for CS2000.
- Double-click CyberSource Component and configure the setting as follows:
- Set Merchant to your merchant id.
- Select Authorize Card for the service you want from the available services to move it to selected services.
- Click Properties and configure the Authorize Card service.
- Select the Logging tab and select the Enable logging check box.
- Click OK.
- The Components Service window appears.
- Click OK.
- Save your pipeline file.
- Your store is now setup to process payment transactions and log the transactions to a file.
Note Logging should only be used for testing purposes. For performance reasons, logging is not recommended for production environments.
- Restart the Web server so your changes will take effect. You can run iisreset.exe from the Start > Run menu.
Importing the Booksfull.xml Catalog File
- Click the Import Catalog icon in the Catalog Editor screen to import the booksfull.xml catalog file from the Business Desk.
- In the drop-down list, click Import XML.
- Select the location of your booksfull.xml catalog in the
Import XML Catalog
dialog box. This should be in the catalog that you installed Commerce Server.- Click OK.
- Click OK in the Business Desk: Import XML dialog box.
- Restart the Web server.
The Books catalog is now imported and available on the retail site.
Setting Shipping Rates
- Click Shipping Methods in Orders form the Business Desk to add a charge by subtotal shipping method.
- Click the New Shipping Method icon in the Shipping Methods screen.
- In the drop-down list, click Charge by Subtotal.
- In the Shipping Method Properties section, do the following:
- For Name, type the Name of your shipping method.
- For Description type the Description of your shipping method.
- For Enabled, click the check box to enable your shipping method.
- In the Rates section, do the following:
- For Rates, click New.
- For Price up to, type the subtotal amount for the rate level.
- For Shipping Rate, type the amount of the rate.
- Click
Accept
.- Click the last row in the rates list. After entering all the rates, this row should read over the highest number of quantity entered.
- Click
Edit
.Important You must edit the last line under
Rates
in order to save your shipping method.- Enter the highest rate for this shipping method.
- Click
Accept
.- Click on the Save Shipping Method icon to save the shipping method. The charge by subtotal method is saved.
Extending the Address Book
- Add the field u_email_address (data type varchar, length 255) to your store's Addresses table database.
- Run the Commerce Server Manager.
- From Commerce Server Manager, select Commerce Server Manager > Global Resources > Profiles > Profile Catalog > Data Sources > ProfileService_SQLSource > Data Objects > Addresses.
- Right-click New Data Member. A new member should be created.
- In the Name box, type
u_email_address
- In the Display name and Description boxes, type Email Address
- In the Data type box, select String.
- From Commerce Server Manager, select Commerce Server Manager > Global Resources > Profiles > Profile Catalog > Profile Definitions > Addresses.
- A list of properties should appear.
- Click General Information.
- Click Add and choose Add A New Property. The following should be displayed:
- Click
Advanced Attributes.
- Map the field to Email Address. This field was previously added in the Addresses table.
- Click Apply.
- Click Save and Exit.
- Locate your store's global_addressbook_lib.asp at <store install dir>/include/global_addressbook_lib.asp.
- Modify your store's global_addressbook_lib.asp file by adding the following code:
Note The procedure to modify your store's global_addressbook_lib.asp may not be applicable for future releases of the CyberSource CS2000 Component, as the content of global_addressbook_lib.asp may change. For more information, contact CyberSource Customer Support
Dim AddressEmail Dim AddressPhone Set dictFld = GetDictionary() dictFld.Name = "tel_number" dictFld.Label = "Telephone Number" dictFld.Size = L_Standard_TextBox_Size_Number dictFld.MinLength = L_Standard_TextBox_MinLength_Number dictFld.MaxLength = L_Standard_TextBox_MaxLength_Number dictFld.InputType = TEXTBOX dictFld.ErrorMessage = "Bad or missing telephone number" dictFld.IsRequired = True Set AddressPhone = dictFld Set dictFld = GetDictionary() dictFld.Name = "email_address" dictFld.Label = "Email Address" dictFld.Size = L_Standard_TextBox_Size_Number dictFld.MinLength = L_Standard_TextBox_MinLength_Number dictFld.MaxLength = L_Standard_TextBox_MaxLength_Number dictFld.InputType = TEXTBOX dictFld.ErrorMessage = "Bad or missing email address" dictFld.IsRequired = True Set AddressEmail = dictFldFunction GetAddressFieldDefinitions() Dim MSCSMessageManager Dim sLanguage Dim listFlds, dictFld Set MSCSMessageManager = Application("MSCSMessageManager") sLanguage = MSCSMessageManager.DefaultLanguage Dim AddressLastName Dim AddressFirstName Dim AddressLine1 Dim AddressLine2 Dim AddressCity Dim AddressRegion Dim AddressPostalCode Dim AddressCountry
- The above code should be added immediately after the following code, which already exists in the file:
Call listFlds.Add(AddressEmail) Call listFlds.Add(AddressPhone)
- Add the following code in the same GetAddressFieldDefinitions() function:
Call listFlds.Add(AddressLastName) Call listFlds.Add(AddressFirstName) Call listFlds.Add(AddressLine1) Call listFlds.Add(AddressLine2) Call listFlds.Add(AddressCity) Call listFlds.Add(AddressRegion) Call listFlds.Add(AddressPostalCode) Call listFlds.Add(AddressCountry)
- The above two lines of code should be added immediately after the following code, which already exists in the file:
Copyright © 2002 CyberSource Corporation. |
![]() |
![]() |
![]() |
![]() |