forked from extcode/cart_paypal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ext_localconf.php
35 lines (29 loc) · 1.16 KB
/
ext_localconf.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?php
defined('TYPO3_MODE') or die();
// configure plugins
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'Imhlab.cart_quickpay',
'Cart',
[
'Order\Payment' => 'confirm, success, cancel',
],
// non-cacheable actions
[
'Order\Payment' => 'confirm, success, cancel',
]
);
// configure signal slots
$dispatcher = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Extbase\SignalSlot\Dispatcher::class);
$dispatcher->connect(
\Extcode\Cart\Utility\PaymentUtility::class,
'handlePayment',
\Imhlab\CartQuickpay\Utility\PaymentUtility::class,
'handlePayment'
);
// exclude parameters from cHash
$GLOBALS['TYPO3_CONF_VARS']['FE']['cacheHash']['excludedParameters'][] = 'TID';
$GLOBALS['TYPO3_CONF_VARS']['FE']['cacheHash']['excludedParameters'][] = 'LANGUAGE';
$GLOBALS['TYPO3_CONF_VARS']['FE']['cacheHash']['excludedParameters'][] = 'USER_FIELD';
$GLOBALS['TYPO3_CONF_VARS']['FE']['cacheHash']['excludedParameters'][] = 'BRAND';
$GLOBALS['TYPO3_CONF_VARS']['FE']['cacheHash']['excludedParameters'][] = 'ERRTEXT';
$GLOBALS['TYPO3_CONF_VARS']['FE']['cacheHash']['excludedParameters'][] = 'EXTERNALSTATUS';