Tutorial: Configuring the SimpleOffline plug-in with two payment methods
This tutorial demonstrates how to configure a payment system for the store. This tutorial uses two payment methods: myVISA and PayInStore as examples to show how to setup the payment methods using the SimpleOffline plug-in.
Learning objectives
After completing this tutorial we will understand how to:
- Configure the payment system to use synchronous event
- Create a payment configuration group for the store
- Configure each XML configuration file in the payment configuration group for two payment methods
- Configure the XML configuration files for the payment plug-in controller
- Configure the XML configuration files for the SimpleOffline payment plug-in
- Configure two payment business policies for the store
This tutorial should take approximately 30 minutes to finish. If you explore other concepts related to this tutorial, it could take longer to complete.
Skill level
Intermediate
Audience
This tutorial is intended for store developers to configure the payment methods for the store.
System requirements
To complete this tutorial, you should install IBM WebSphere Commerce, create a WCS instance, and publish the ConsumerDirect store.
Prerequisites
You should also be familiar with the following terms and concepts:
Lessons in this tutorial
- Tutorial: Configuring the payment system to use synchronous event
In this part of the tutorial, you configure the payment system to use synchronous or asynchronous payment event, which means that the payment action is handled in the same transaction with the order process or in a separate transaction.
- Create a payment configuration group for the store
In this part of the tutorial, you create a payment configuration group for the store. WebSphere Commerce provides a ready-to-use payment configuration group named default that you can use for the store, so you can ignore this step. But if you want two different configurations for the same payment method in different stores, create another payment configuration group. The payment configuration group is uniquely configured for one combination of payment method and the store. Such a combination can have only one payment configuration group configured. This mapping is configured in the POLICY table for payment business policy. You configure this in step 6 of this tutorial.
- Configure each XML configuration file in the payment configuration group for two payment methods
In this part of the tutorial, you configure each configuration XML file in the new group myGroup ? for two payment methods which are VISA and PayInStore. VISA is already a supported offline payment method in the starter store. You configure a different payment configuration in myGroup than in the default ? group. PayInStore is not a supported payment method in the starter store. We will demonstrate how to add it.
- Configure the XML configuration files for the payment plug-in controller
In this part of the tutorial, you configure the payment plug-in controller. This configuration maps the payment system name to the payment plug-in for different payment configuration groups. We can configure any property that is required by the payment plug-in for each mapping. We can also configure the keywords which we will store for each payment instruction in the Payment Plug-in Controller mapping level.To configure the two payment systems for myGroup:
- Configure the XML configuration files for the SimpleOffline payment plug-in
In this part of the tutorial, you learn how to configure the SimpleOffline payment plug-in to support the VISA and PayInStore payment methods.
- Configure two payment business policies for the store
In this part of the tutorial, you configure the VISA and PayInStore payment methods for the store. We take the ConsumerDirect store as an example.