Tutorials > Payments > Configure the SimpleOffline plug-in with two payment methods

< Previous | Next >


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.


Procedure

  1. (Optional) Open the WC_EAR\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 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_EAR\xml\config\payments\ppc\plugins\SimpleOffline\SimpleOfflinePlugin.xml configuration file in a text editor. Add the following section just before the ending </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 to keep the pending transaction for the payment method. If you specify that to keep the pending transaction, you can edit the transaction manually from the Payments menu in the WebSphere Commerce Accelerator.

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

< Previous | Next >


+

Search Tips   |   Advanced Search