Tutorial: Configuring your payment system to use synchronous event

In this step of the tutorial, you will configure your payment system to use a synchronous or an asynchronous payment event. The payment action will be handled in the same transaction as the order process or in a separate transaction.

About this task

In the payment plug-in or the online payment plug-in, when communication speed is high, using the synchronous payment events makes the order flow simpler because the orders do not depend on the asynchronous event processing. However, when your online payment plug-in has low communication speed, you might need to configure your payment system to use asynchronous payment event so that the order flow can be completed sooner to gain better customer satisfaction and to release the system resources used by the order flow. By default, the payment system is configured as synchronous. For more information on the description of configuration, see EDPGlobalConfigs XML file.

Follow these steps to configure your payment system to use synchronous payment event:

Procedure

  1. Open the WC_eardir/xml/config/payments/edp/EDPGlobalConfigs.xml file and change the <AlwaysExecuteProcessBGInFG> element to true.
  2. Create a payment configuration group:
    1. In the WC_eardir/xml/config/payments/edp/groups directory, copy the default subdirectory then paste it in the same directory.
    2. The copied subdirectory is named default_copy, rename the subdirectory to myGroup.

Results

The payment system will now use a synchronous event. The payment action is handled in the same transaction as the order process.

In the next step of the tutorial you will learn how to create a payment configuration group called myGroup for your store ConsumerDirect.