Configure payment plug-ins for Payment Rules

Payment plug-ins can be configured for use with Payment Rules processing. To add a payment plug-in into a Payment Rules configuration (or to change the name of a plug-in):

  1. Edit the PaymentMethodConfiguration XML file to specify the payment system name associated with the payment plug-in configured in the WebSphere Commerce Payments. For example, here, OfflineCreditCardSystem is the payment system name.
    <PaymentMethodConfiguration
         name="AMEX"
         paymentSystemName="OfflineCreditCardSystem"
    

    The payment system name should match the name attribute of a PaymentSystemName element in the PaymentSystemPluginMapping.xml file. For example:

    <PaymentSystemName 
         name="OfflineCreditCardSystem" >
              <Mapping 
                   paymentConfigurationId="default"
                   PluginName="WCPaymentsPlugin">
                     <Property name="ProfileName" value="WCPPlugin_OfflineCard"/>
                     <Property name="SupportsOnlineTransaction" value="yes"/>
                     <Keyword name="cc_cvc" mask ="-" plain="0" removeAfterApproval ="true"/>
                     <Keyword name="cc_nameoncard" mask ="*" plain="0" removeAfterApproval ="true"/>
                     <Keyword name="account" mask ="*" plain="-5" searchable="true"/>
              </Mapping>
    

    The plug-in mapping XML file is located in the following directory:

    • WC_eardir/xml/config/payments/ ppc/plugins/PaymentSystemPluginMapping.xml
    • WC_eardir/xml/config/payments/ ppc/plugins/PaymentSystemPluginMapping.xml
    • WCDE_installdir /xml/config/payments/ppc/plugins/PaymentSystemPluginMapping.xml
  2. Ensure the remaining set of Payment Rules XML configuration files are configured for payment rules.
  3. Refresh the payment registry cache.