Payment ServicesChargeLogic Connect

ChargeLogic Connect

Sana Commerce 9.2
Your connector

Payment Transactions

ChargeLogic Connect is a payment gateway integrated with Microsoft Dynamics NAV and therefore offers NAV customers a better way to integrate ChargeLogic with e-commerce solutions.

The authorized payments can be linked to the sales orders and sent to Microsoft Dynamics NAV. This link comes from validating ChargeLogic's 'External Reference Number' into the 'Your Reference' field of the NAV Sales Header.

Sana is sending the 'External Reference Number' to ChargeLogic. The sales document type and order ID are used for the 'External Reference Number'.

To link the authorized payments to the sales orders you should add a line of code to the Sana Commerce codeunit in Microsoft Dynamics NAV. If you do not have access to the Microsoft Dynamics NAV development environment, contact the person who is responsible for maintaining the NAV environment of your Sana Commerce solution. The placement of the code can also vary depending on whether you have customizations within NAV which can affect the trigger.

 NOTE

If you link the authorized payments to the sales orders as described below, and the ChargeLogic add-on is installed inside Microsoft Dynamics NAV, you must also set up a new EFT terminal for the user that is used to establish connection between Sana and Microsoft Dynamics NAV.

Step 1: Open the Microsoft Dynamics NAV Object Designer.

Step 2: Locate the codeunit 11123320 SC - Order/Basket Functions.

Step 3: Select the codeunit and click Design.

Step 4: Add the following code to the CreateOrder function. See the screenshot below.

// START, ChargeLogic extension
DocType := FORMAT(SalesHeader."Document Type");
DocNo := SalesHeader."No.";
SalesHeader.VALIDATE("Your Reference",DocType + '_' + DocNo);
// END, ChargeLogic extension


CreateOrder

Step 5: Add the following code to the UpdateOrder function. See the screenshot below.

// START, ChargeLogic extension
DocType := FORMAT(SalesHeader."Document Type");
DocNo := SalesHeader."No.";
SalesHeader.VALIDATE("Your Reference",DocType + '_' + DocNo)
// END, ChargeLogic extension


UpdateOrder

Payment ServicesChargeLogic Connect