Tutorials > Payments > Develop a payment plug-in
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
- cd WC_EAR/xml/config/payments/ppc/plugins
- Make a backup of PaymentSystemPluginMapping.xml.
- Open PaymentSystemPluginMapping.xml for editing.
- 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>
- Close the file and save the changes.