Tutorials > Payments > Develop a payment plug-in
Step 7: Updating the payment method configuration files
In this step, we will update the CreditCardOnline payment method configuration to use the payment system defined in step 6 and update the credit card payment methods to use the CreditCardOnline payment method configuration.
- Prerequisites
- Payment Service Provider Simulator
Procedure
- To update the CreditCardOnline payment method configuration:
- Open the WC_EAR/xml/config/payments/edp/groups/default directory.
- Make a backup of PaymentMethodConfigurations.xml.
- Open PaymentMethodConfigurations.xml for editing.
- Locate the following element:
<PaymentMethodConfiguration name="CreditCardOnline" paymentSystemName="Paymentech" systemEditable="true" humanEditable="true" refundAllowed="true" minimumAmount="0" maximumAmount="Unbounded" priority="MEDIUM" partiallyConsumable="true" />
- Change
paymentSystemName="Paymentech"to
paymentSystemName="MyPaymentSystem"
- To update the credit card payment methods, do the following:
- Open the WC_EAR/xml/config/payments/edp/groups/default directory.
- Make a backup of PaymentMappings.xml.
- Open PaymentMappings.xml for editing.
- Locate the following element:
<Mapping paymentMethod="VISA" paymentConfiguration="CreditCardOffline" paymentActionRule="Early Approval" />
- Change
paymentConfiguration="CreditCardOffline"to
paymentConfiguration="CreditCardOnline"
- Repeat for the payment methods Master Card and AMEX.
- Close the file and save the changes.