Updating the payment method configuration files

In this step, you 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.

Procedure

  1. Update the CreditCardOnline payment method configuration:
    1. Open the WC_eardir/xml/config/payments/edp/groups/default directory.
    2. Make a backup of PaymentMethodConfigurations.xml.
    3. Open PaymentMethodConfigurations.xml for editing.
    4. Locate the following element:
      <PaymentMethodConfiguration humanEditable="true"
      maximumAmount="Unbounded" minimumAmount="0"
      name="CreditCardOnline" partiallyConsumable="true"
      paymentSystemName="Paymentech" priority="MEDIUM"
      refundAllowed="true" systemEditable="true"/>
    5. Change
      paymentSystemName="Paymentech"
      
      to
      paymentSystemName="MyPaymentSystem"
      
  2. Update the credit card payment methods:
    1. Open the WC_eardir/xml/config/payments/edp/groups/default directory.
    2. Make a backup of PaymentMappings.xml.
    3. Open PaymentMappings.xml for editing.
    4. Locate the following element:
      <Mapping paymentActionRule="Early Approval"
      paymentConfiguration="CreditCardOnline" paymentMethod="VISA"/>
      
    5. Change
      
       paymentConfiguration="CreditCardOffline"
      
      to
      
       paymentConfiguration="CreditCardOnline"
      
    6. Repeat for the payment methods Master Card and AMEX.
    7. Close the file and save the changes.