[CyberSource logo]


Search documentation:

  Help  Advanced
        Published 08/06/2002 Table of ContentsPreviousNextIndex

Chapter 2

Creating Strategies and Modules

This chapter explains how to use the Administration Server to create strategies and modules.

Note  Before you create business strategies, the server administrator must configure the Administration Server. See Chapter 5, "Configuring and Maintaining Risk Manager" for more information about configuring the Administration Server.

Planning Your Strategy

Before you use Risk Manager to create a strategy, complete the following tasks:

Defining Business Rules

Your strategy will be easier to implement if you clearly define the business rules that it must follow.

For example, the following business rules can be combined into a strategy:

  1. If the customer's billing address is not in the United States, reject the order.
  2. If the customer ordered any items that cost more than $500, review the order.
  3. If the customer requested same-day shipping, review the order.
  4. In all other cases, accept the order.

Figure 2 shows how these business rules might look when they are implemented in a Risk Manager strategy.

Figure 2 Sample Strategy

Identifying Fields

After you define your business rules, you can identify the fields to use in your rules.

Risk Manager includes many predefined fields that you can use in your rules. In addition, many plug-ins include a list of fields that are relevant to the plug-in. See Viewing All Fields for information about how to view a list of these fields.

You can also define custom fields for your business. See Adding Business Fields for information about defining custom fields.

For example, to implement the business rules described in Defining Business Rules, you would use the fields described in the following list. All of these fields are system fields.

  1. The field bill_country contains the country of the customer's billing address. If the billing address is in the United States, the field contains the value US.
  2. The field amount contains the amount of each item in the order. For example, if an item costs $599.99, this field contains the value 599.99.
  3. The field shipping_method contains the shipping method chosen by the customer. If the customer requested same-day shipping, this field contains the value sameday.

Logging In

Once you have defined your business strategy, you are ready to log into Risk Manager.

  1. Open a Web browser.
  2. You can use Microsoft Internet Explorer 5.5 or greater with Risk Manager.
  3. Type the URL for your company's Administration Server.
  4. For a regular connection, type http://<server>:<port>/admin/.
    For a secure connection, type https://<server>:<secureport>/admin/.
    Replace <server> with the name of your application server and <port> (or <secureport>) with the port number where the Administration Server runs.
  5. Press Enter.
  6. The Log In page appears.
  7. Type your user name and password, then click Log In.
  8. Risk Manager displays a list of businesses available on the Administration Server.

Adding a Business

Risk Manager groups strategies into businesses. If there are no businesses on your Administration Server, you must add a business before you can create a strategy.

  1. Click the Add Business button.
  2. The Add Business page appears.

  1. Type a name and description for the business, then click Add Business.
  2. Risk Manager creates a new business.

Creating a New Strategy

A strategy can include rules, plug-in calls, and other components. Figure 3 shows how each of these components appear in the strategy editor.

Figure 3 Components of a Strategy

To add components to a strategy, click on the lines that connect each component. To edit a component, click on the component.

Important  As you edit a strategy, save your changes frequently by clicking the Save Changes button. If you do not, the Administration Server will not store your changes.

Strategies are grouped into businesses. Before you create a strategy, you must decide which business will contain the strategy. Also, you must decide whether to start the new strategy with a copy of an existing strategy.

A strategy can be deployed to a Decision Server only when all of its modules are complete and when it contains no Unspecified points.

Creating an Empty Strategy

  1. Click the name of the business that will contain the new strategy.
  2. The home page for the business opens.

  1. Click the Add Strategy button.
  2. The Add Strategy page opens.

  1. Type a strategy name.
  2. For example, you can use the name of a sales channel, such as Web or Phone.
  3. Type a version name.
  4. You can use the version name to indicate different versions of a similar strategy. For example, you might have two version names, Normal and Holiday.

    Note  The Decision Server can run only one version of a strategy at a time.

  5. Type a brief description of the strategy.
  6. Click Create Strategy.
  7. Risk Manager creates the strategy and returns you to the home page for the business.

Creating a Copy of an Existing Strategy

When you create a new version of a strategy, you can start with a copy of an existing version.

  1. Click the name of the business that will contain the new strategy.
  2. The home page for the business opens.
  3. Click the name of the strategy that contains the version to copy.
  4. The Add Strategy page opens.

  1. Type a version name.
  2. Note  The Decision Server can run only one version of a strategy at a time.

  3. Type a brief description of the strategy.
  4. In the Based On list, choose the version to copy.
  5. Click Create Strategy.
  6. Risk Manager creates a copy of the existing version.

Importing a Strategy

When you create a new strategy, you can choose to import a strategy from a file. Importing a strategy also imports all of the modules and plug-in settings for the strategy.

After you import a strategy, Risk Manager changes its description to "Imported." If necessary, it adds a number to the end of the strategy's version name, module names, and plug-in settings names, to prevent conflicts with existing information.

  1. On the left navigation bar, click Businesses.
  2. The Choose a Business page opens.
  3. Click the name of the business where you want to import the strategy.
  4. The home page for the business opens.
  5. Click the Add Strategy button.
  6. The Add Strategy page opens.
  7. Under Import Strategy, click the Browse... button.
  8. The browser prompts you for the location of the strategy file. Choose the strategy file to import, then click Open.
  9. Click Import Strategy.
  10. Risk Manager imports the strategy and its modules.

Creating Rules

A strategy uses rules to make your business decisions. Each rule evaluates some of the fields in a transaction. For example, you can check whether the customer's billing address is in the United States, or you can check whether an Advanced Fraud Screen score is higher than a specific number.

When a rule is used, it can have two results:

After you create a rule, you choose what happens based on the results of the rule. For example, if the rule is true, the strategy could request a credit card authorization, then check another rule; if the rule is false, you could mark the transaction for review.

Note  The Administration Server enables you to use all of Risk Manager's features in your rules. When you deploy a strategy, Risk Manager verifies that your license supports all of the features in your strategy.

  1. On the business home page, click the version name of a strategy you want to edit.
  2. The strategy editor opens.
  3. On the strategy diagram, click where you want to add the new rule.
  4. For example, in a new strategy, click the line under the orange box at the top of the diagram.
    A pop-up window appears.

  1. In the Insertions Options list, choose Rule.
  2. Choose a rule to copy, or choose None to create a new rule.
  3. Choose whether to continue the workflow under the true or false condition.
  4. Click Submit.
  5. The Rule Editor page opens.

Using the Rule Wizard

The rule wizard helps you create a rule quickly, without writing the rule by hand. You use a simple form to choose which fields to test in the rule.

  1. Click the Rule Wizard button, located next to the Rule Name box.
  2. The rule wizard appears in a new window.

  1. Choose whether the rule must match all of your conditions to be true, or whether it can match any of the conditions to be true.
  2. In the Left Side list, choose what you want to test.
  3. In the Operator list, choose how to compare both sides of the condition.
  4. In the Right Side list, choose what you want to compare the left side with.
  5. Click Add.
  6. If the condition is valid, Risk Manager adds it to the list. Otherwise, it displays an error message. Correct the condition as necessary.
  7. Repeat Step 3-Step 6 as many times as necessary.
  8. Click Finish.
  9. Risk Manager creates the rule, closes the rule wizard, and returns you to the Rule Editor page.
  10. Click Submit.
  11. Risk Manager saves the rule and returns you to the strategy.

Using the Rule Editor

The rule editor allows you to create and edit rules for your strategy. It also makes sure that your rules use the correct format.

To create a rule, you use operators to compare fields with values. For example, to test whether the field bill_country is equal to the value US, you would create the following condition:

bill_country == "US"

You can also compare fields with other fields. For example, to test whether the field bill_country is equal to the field ship_to_country, you would create the following condition:

bill_country == ship_to_country

Risk Manager provides several types of operators:

The following tables describe the operators you can use in a rule.



Table 1 Grouping Operators 
Grouping Operator
Description
Examples
( )
Parentheses. Used when combining multiple conditions.
(bill_country == "US") OR (ship_to_country == "US") is true if either bill_country or ship_to_country is equal to US.
" "
Quotation marks. Used around text values, Boolean values, or regular expressions in a condition.
bill_country == "ship_to_country" is true if the field bill_country is equal to the value ship_to_country.
bill_country == ship_to_country is true if the field bill_country is equal to the field ship_to_country.



Table 2 Comparison Operators 
Comparison Operator
Description
Examples
==
Equal to.
cybs_auth_rflag == "SOK" is true if the field cybs_auth_rflag is equal to the value SOK.
!=
Not equal to.
bill_country != ship_to_country is true if the field bill_country is not equal to the field ship_to_country.
<
Less than. Used only with numeric fields.
cybs_score_score_result < 40 is true if the field cybs_score_score_result is less than 40.
>
Greater than. Used only with numeric fields.
quantity > 5 is true if the field quantity is greater than 5.
<=
Less than or equal to. Used only with numeric fields.
cybs_score_score_result <= 40 is true if the field cybs_score_score_result is less than or equal to 40.
>=
Greater than or equal to. Used only with numeric fields.
quantity >= 5 is true if the field quantity is greater than or equal to 5.
CONTAINS
Checks whether a field contains a value. Used only with text fields.
bill_address1 CONTAINS "lake" is true if the field bill_address1 contains the value lake (for example, if the full value of bill_address1 was 123 Westlake Drive).
STARTSWITH
Checks whether a field starts with a value. Used only with text fields.
bill_city STARTSWITH "holly" is true if the field bill_city starts with the value holly (for example, if the full value of bill_city was Hollywood).
ENDSWITH
Checks whether a field ends with a value. Used only with text fields.
bill_address1 ENDSWITH "hamilton" is true if the field bill_address1 ends with the value hamilton (for example, if the full value of bill_address1 was 123 West Hamilton).
REGEX
Checks whether a field matches a regular expression. Used only with text fields.
bill_zip REGEX "\d{5}(-\d{4})?" is true if the field bill_zip uses the correct format for a United States postal code (for example, 94043 or 94043-1307).
See Appendix A, "Regular Expressions" for more information about regular expressions.



Table 3 Joining Operators 
Joining Operator
Description
Examples
AND
Checks whether both conditions in a rule have been met.
(bill_country == "US") AND (ship_to_country == "US") is true if both bill_country and ship_to_country are equal to the value US.
OR
Checks whether either condition in a rule has been met.
(quantity > 5) OR (cybs_score_score_result < 40) is true if quantity is less than 5 or if cybs_score_score_result is less than 40.

Creating a Simple Rule

A simple rule contains only one condition, such as auth_rflag == "SOK".

  1. In the Rule Name box, type a name for your rule.
  2. The strategy diagram will display the first 10-12 characters of the rule name.
  3. Choose a field group, then double-click the name of the field to add.
  4. The field name appears in the Rule Condition box.
  5. Click the button for a comparison operator, such as == (equal to).
  6. The operator appears in the Rule Condition box.
  7. If you want to compare the field you added to a text value, Boolean value, or regular expression, click the button for the " " (quotation marks) operator.
  8. The operator appears in the Rule Condition box.
  9. Type the value to compare with the field, or double-click a field if you want to compare two fields with each other.
  10. Click Validate to make sure that your rule is formatted correctly. If there are errors, follow the instructions to correct them.
  11. Note  Risk Manager automatically validates your rule before it is saved. You are not required to use the Validate button.

  12. When you are done editing your rule, click Submit.
  13. Risk Manager returns you to the strategy editor.

Creating an Advanced Rule

An advanced rule contains several conditions joined together, such as (bill_country == "US") OR (ship_to_country == "US").

You can also use parentheses to create more complicated rules. For example, the rule ((bill_country == "US") OR (ship_to_country == "US")) AND (quantity < 5) is true in any of the following cases:

To create an advanced rule, you can follow the instructions in Creating a Simple Rule. However, you may find it easier to type the rule in the Rule Condition box.

Viewing a List of Rules

You can view a list of all of the rules in a strategy version. The list includes the conditions used in each rule.

  1. Open the strategy whose rules you want to view.
  2. Under the strategy diagram, click "View all rules in this strategy version."
  3. Risk Manager displays all of the rules in the strategy.

Adding Decision Points

Based on the rules you create, your strategy indicates whether you should accept, reject, or review a transaction. You choose whether to accept a transaction by adding decision points to your strategy. Risk Manager stops processing the transaction when the strategy reaches a decision point.

When you create a decision point, you can specify a field name and value to add to the transaction. If the Decision Server reaches the decision point, it will add the field to its reply message.

  1. On the strategy diagram, click where you want to add a decision point.
  2. For example, to add a decision point if a rule is true, click the word "True" under the rule.
    A pop-up window appears.

  1. In the Insertion Options list, choose Decision Point.
  2. In the Decision Type list, choose the type of decision to insert.
  3. If you want to add a field to the reply message, type the field name in the Return Field box and the value in the Return Value box.
  4. Click Submit.
  5. Risk Manager adds the decision point to the strategy.

Adding Plug-In Calls

Risk Manager includes several plug-ins that you can use as part of your strategy:

Your license may also include additional plug-ins, including plug-ins that perform hotlist and velocity checks. See Chapter 3, "Using Risk Manager Plug-Ins" for more information about Risk Manager plug-ins.

You can add plug-ins to any part of your strategy. For example, the strategy can call the hotlist plug-in at the beginning of the strategy, or it can call several plug-ins based on the outcome of a rule.

  1. On the strategy diagram, click where you want to add a plug-in call.
  2. For example, to add a plug-in call if a rule is false, click the word "False" under the rule.
    A pop-up window appears.
  3. In the Insertions Options list, choose Plugin Call.
  4. In the Plugin list, choose the plug-in to use.
  5. In the Settings list, choose a plug-in settings group to use.
  6. To create a new settings group, choose New. To use the plug-in without a settings group, choose None.
  7. Click Submit.
  8. If you choose an existing group, or None, Risk Manager adds the plug-in to the strategy.
    If you choose New, Risk Manager opens the Create a Plug-In Settings Group page. See Creating Plug-In Settings Groups for information about this page. When you click Save Settings, Risk Manager returns you to the strategy editor.

Adding Module Calls

A module contains rules and plug-ins and can be shared by multiple strategies. Once you create modules, you can use them in your strategy. See Creating Modules for information about modules.

You can add modules to any part of your strategy. For example, the strategy can call a module anywhere in the strategy, or it can call a module based on the result of a rule.

  1. On the strategy diagram, click where you want to add a module.
  2. For example, to add a module call if a rule is true, click the word "True" under the rule.
    A pop-up window appears.

  1. In the Insertion Options list, choose Module Call.
  2. In the Module list, choose the module to call.
  3. Click Submit.
  4. Risk Manager adds the module to the strategy.

Creating Modules

In some cases, you may want to use the same business rules in more than one strategy, or you may want to simplify a very complex strategy. You can use modules to perform these tasks. Modules can be used in all of the strategies within a single business.

A module is similar to a strategy; it is a workflow that contains rules and plug-ins. However, you cannot accept, reject, or review a transaction from within a module. Instead, you return information to the strategy, which uses rules to interpret the information.

You can use modules to combine information from different sources, then distill it into one or two fields. For example, you could do any of the following with a module:

A module is complete only when it contains no Unspecified points.

Important  If you use a module in several strategies, be very careful when you change the module. Any changes you make will affect all of the strategies that use the module.

  1. On the business home page, click the Add Module button.
  2. The Add Module page opens.

  1. In the Module Name box, type a name for the module.
  2. The strategy diagram will display the first 10-12 characters of the module name.
  3. In the Description box, type a brief description of the module.
  4. If you want to create a copy of an existing module, select the name of the module from the Based On list. Otherwise, use the default option, None.
  5. Click the Create Module button.
  6. Risk Manager creates the module and returns you to the home page for the business.

Adding Rules and Plug-In Calls

You can add rules and plug-in calls to a module just as you would add them to a strategy. See Creating Rules and Adding Plug-In Calls for more information.

Adding Module Return Points

You use module return points at the end of a module. When Risk Manager reaches a module return point, it stops processing the module and returns to the strategy.

When you create a module return point, you can specify a field name and value to add to the transaction. Your strategies can use this value to determine the results of the module.

  1. On the strategy diagram, click where you want to add a module return point.
  2. For example, to add a module return point if a rule is true, click the word "True" under the rule.
    A pop-up window appears.

  1. In the Insertion Options list, choose Module Return.
  2. If you want to add a field to the reply message, type the field name in the Return Field box and the value in the Return Value box.
  3. Click Submit.
  4. Risk Manager adds the module return point to the strategy.

Editing Strategies and Modules

You can edit or delete any part of your strategy or module after you create it. For example, you can change the conditions in a rule, delete a plug-in call, or change a decision point from "Accept" to "Reject" or "Review."

Note  If you change a strategy that has already been deployed, or if you change a module that is used in a deployed strategy, you must redeploy the strategy before your changes are used to process transactions.

If you have already deployed a strategy, consider creating a backup of the strategy before you change it. See Exporting a Strategy for information about exporting strategies to files.

Editing or Deleting a Rule

You can change the conditions in a rule, and you can switch the true and false branches of a rule. You can also delete a rule.

  1. Click the rule you want to change.
  2. The Rule Editor page opens.

Editing or Deleting a Decision Point

  1. Click the decision point you want to change.
  2. A pop-up window appears.

Editing or Deleting a Plug-In Call

  1. Click the plug-in call you want to change.
  2. A pop-up window appears.

Editing or Deleting a Module Call

  1. Click the module call you want to change.
  2. A pop-up window appears.

Editing or Deleting a Module Return Point

  1. Click the module return point you want to change.
  2. A pop-up window appears.

Creating Hotlists

Hotlists enable you to store information about transactions that are known to be fraudulent. You can also use hotlists to store information about your best customers, so you can ensure that you do not accidentally reject their orders.

Each business has its own hotlists, which are stored on a Decision Server. Hotlists are updated in real time; you can update your hotlists without changing your strategies. You cannot share hotlists between businesses.

Hotlists can contain any of the following information:

Each Decision Server includes two hotlists for each business:

To use your hotlists in a strategy, you add the ListCheck plug-in to the strategy, then create rules that interpret the results of the hotlist checks. See ListCheck Plug-In for more information about the ListCheck plug-in.

Adding Hotlist Entries

  1. On the left navigation bar, click Businesses.
  2. The Choose a Business page opens.
  3. Click the name of the business whose hotlist you want to change.
  4. The home page for the business opens.
  5. Click "Manage hotlists."
  6. The Hotlist Management page opens.
  7. Click "Add entries to the hotlist."
  8. The Add Hotlist Entries page opens.

  1. In the Decision Server list, choose which server will use the hotlist entries.
  2. Next to Hotlist to Update, choose whether to add the entries to the positive or negative hotlist.
  3. Type the customer information to add to the hotlist. If you type a customer's street address, you must also type a postal code.
  4. Important  The data format you use in hotlists must exactly match the format used in Decision Server transactions. For example, if you add the phone number (605) 555-3333 to the hotlist, and a transaction contains the phone number 605-555-3333, the hotlist will not detect a match.

  5. Click Add Item.
  6. Risk Manager adds the entries to the hotlist.

Removing Hotlist Entries

  1. On the business home page, click "Manage hotlists."
  2. The Hotlist Management page opens.
  3. Click "Remove hotlist entries."
  4. The Remove Hotlist Entries page opens.

  1. In the Decision Server list, choose which server contains the hotlist entries.
  2. Next to Hotlist to Update, choose whether to remove the entries from the positive or negative hotlist.
  3. Type the customer information to remove from the hotlist. If you type a customer's street address, you must also type a postal code.
  4. Click Remove Item.
  5. Risk Manager removes the entries from the hotlist.

Exporting a Hotlist

If you want to use your Risk Manager hotlist for other applications, you can export all of your hotlist entries to a file. Hotlists are stored on your company's Decision Server.

For information about the format of a hotlist file, see Appendix B, "Hotlist File Format".

  1. On the business home page, click "Manage hotlists."
  2. The Hotlist Management page opens.
  3. Click "Export hotlist to a file."
  4. The Export Hotlist page appears.
  5. Choose a Decision Server from the list, then click Export Hotlist.
  6. Your browser prompts you to save the hotlist file. Click OK, then choose a location to save the file.

Importing a Hotlist

If your company already maintains a hotlist, you can import all of your existing hotlist entries into a Decision Server.

Before you import the hotlist, you must create a hotlist file. For information about the format of a hotlist file, see Appendix B, "Hotlist File Format".

  1. On the business home page, click "Manage hotlists."
  2. The Hotlist Management page opens.
  3. Click "Import hotlist from a file."
  4. The Import Hotlist page appears.
  5. Choose a Decision Server from the list.
  6. Click the Browse... button.
  7. The browser prompts you for the location of the hotlist file. Choose the hotlist file to import, then click Open.
  8. Click Import Hotlist.
  9. Risk Manager imports the hotlist.

Adding Business Fields

You may need to use fields in your strategies that do not already exist in Risk Manager. For example, if you want to make decisions based on the department that is selling a product, you would need to create a business field for the department code.

  1. On the business home page, click "Manage transaction fields."
  2. The Business Transaction Fields page opens.
  3. Click Add Field.
  4. The Add Business Field page opens.

  1. In the Name box, type the name of the field.
  2. The field name can contain only letters, numbers, dashes (-), underscores (_), and periods (.).
  3. In the Type list, choose a data type for the field. You can use one of the following types:
  4. Type a brief description of the field.
  5. Click Add Business Field.
  6. Risk Manager adds the field to the business.

Viewing All Fields

You can view a list of all fields available to a business, including system fields, plug-in fields, and business fields.

Note  If a field is defined in several places, it appears only once in the list of fields.

  1. On the business home page, click "Manage transaction fields."
  2. The Business Transaction Fields page opens.
  3. Click View All Fields.
  4. The Transaction Fields page opens. This page displays all of the fields that can be used within the business.

  1. To view only a specific group of fields, choose the group from the list at the top of the page, then click Go.
  2. Risk Manager displays only the fields for the group you chose.

When you are done looking at the list of fields, click your browser's Back button to return to the list of fields for your business.


Copyright © 2002 CyberSource Corporation.
TOC PREV NEXT INDEX