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

Procedure

  1. (Optional) Open the WC_eardir\xml\config\payments\ppc\plugins\SimpleOffline\PluginDeployment.xml deployment descriptor in a text editor. You will see lines like this: <ProtocolProperty name="card_number" keep="true"/> This element specifies the payment protocol properties that you want to keep in the extended data for the payment instructions. If you want any payment method that uses this plug-in to use additional protocol properties, you can add them here. However, for this tutorial, we will keep the default configurations.
  2. Open the WC_eardir\xml\config\payments\ppc\plugins\SimpleOffline\SimpleOfflinePlugin.xml configuration file for editing. Add the following section just before the final </PaymentMethods> element:
     <PaymentMethod name="VISA" paymentConfiguration="myGroup" keepPendingStatus="true">
      <Property name="account" minLength="1" maxLength="16" />
      <Property name="cc_brand"/>
      <Property name="expire_month"/>
      <Property name="expire_year"/>
      <Property name="billto_address1"/> 
      <Property name="billto_country"/>
     </PaymentMethod>  
    <PaymentMethod name="PayInStore" paymentConfiguration="myGroup" keepPendingStatus="true">  
    <Property name="billto_address1"/>  <Property name="billto_country"/>  
    </PaymentMethod> 
    This file defines the payment protocol required by each payment method for different payment configuration groups. It also specifies whether you want to keep the pending transaction for the payment method. If you specify that you want to keep the pending transaction by setting it to true, you will be able to edit the transaction manually from the Payment menu in the WebSphere Commerce Accelerator.

Results

Now you have configured the payment configuration XML files for the VISA and PayInStore payment methods.