Tutorials > Payments > Develop a payment plug-in

< Previous | Next >


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

  1. To update the CreditCardOnline payment method configuration:

    1. Open the WC_EAR/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 
       name="CreditCardOnline"
       paymentSystemName="Paymentech" 
       systemEditable="true"
       humanEditable="true"
       refundAllowed="true"
       minimumAmount="0"
       maximumAmount="Unbounded"
       priority="MEDIUM"
       partiallyConsumable="true" />
      

    5. Change

      paymentSystemName="Paymentech"
      

      to

      paymentSystemName="MyPaymentSystem"
      

  2. To update the credit card payment methods, do the following:

    1. Open the WC_EAR/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 paymentMethod="VISA" 
       paymentConfiguration="CreditCardOffline"
       paymentActionRule="Early Approval" />
      

    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.

< Previous | Next >


+

Search Tips   |   Advanced Search