Tutorials > Payments > Develop a payment plug-in

< Previous | Next >


Step 6: Update the payment system mapping file


Overview

In this step, we will define a new payment system named MyPaymentSystem in the payment system mapping file and map it to the payment plug-in.

Prerequisites

Payment Service Provider Simulator


Update the payment system mapping file

  1. cd WC_EAR/xml/config/payments/ppc/plugins

  2. Make a backup of PaymentSystemPluginMapping.xml.

  3. Open PaymentSystemPluginMapping.xml for editing.

  4. Insert the following into the file, right before </Mapper>:

        <PaymentSystemName name="MyPaymentSystem">
    
            <Mapping paymentConfigurationId="default" 
                     pluginName="MyPaymentPlugin">
    
                <Keyword name="account" 
                         mask ="*" 
                         plain="-5" 
                         searchable="true" />
    
            </Mapping>
    
        </PaymentSystemName>
    

  5. Close the file and save the changes.

< Previous | Next >


+

Search Tips   |   Advanced Search