From AVACTIS : Ecommerce Shopping Cart Software Wiki
Jump to: navigation, search

To setup Avactis with the WorldPay gateway pass the following steps:

1. Go to the Avactis admin panel and open the Store settings -> Payment Methods page.

2. Select WorldPay in the Available Payment Methods section and move it to Selected Payment Methods. Click Save.

3. After the page is reloaded, click on the WorldPay link. This will open a page with the module settings.

4. Tick off Active in the Module Status field, specify your Installation Id, select Production in the Transaction Mode menu.

5. Save the changes.

6. Connect to your server and download the avactis-themes/system/checkout/payment-methods/worldpay/result.html file to your local PC.

7. Open the avactis-system/modules/checkout/actions/update-payment-status-action.php file and find the following line:

if($order_id === NULL)

replace it with this part of code:

if ($order_id === NULL)

// WorldPay

$order_id = $request->getValueByKey("cartId");
if($order_id === NULL)

8. Go to your WorldPay account, click on the Installations link on the left and edit your installation settings:

type the following url in the Callback URL field:

where replace with your store url.

9. In you WorldPay account, click on the Installations link, click on the Manage files button and upload the result.html file you downloaded on step 6.