Strange behavior when sandbox = 0 #21
Description
Activity
The Problem seems to be the string "PayerID=" at the end of the URL back from PayPal. If you remove this part you will be redirected to the "Danke für Ihre Bestellung" Page and the mails are sent properly, otherwise (with PayerID) you will be redirected to the home of the page without sending mails and thank you page.
Does anyone know how to fix it?
Reacted by slowhand11Thanks,
strange thing about this is that it worked until a few weeks. Nobody has changed something in TYPO3 or in PayPal.
Sandbox also having PayerID? In sandbox mode it works for me.My workaround for this problem:
in the getUrl function (PaymentUtility.php) the link is generated with the uribuilder. The option "setUseCacheHash(false)" is set explicitly to prevent the problem. But unfortunately this option does not work, see: https://forge.typo3.org/issues/90783
Workaround in the/an ext_localconf.php exclude the parameters:
$GLOBALS['TYPO3_CONF_VARS']['FE']['cacheHash']['excludedParameters'][] = 'tx_cartpaypal_cart[order]';
$GLOBALS['TYPO3_CONF_VARS']['FE']['cacheHash']['excludedParameters'][] = 'tx_cartpaypal_cart[hash]';
$GLOBALS['TYPO3_CONF_VARS']['FE']['cacheHash']['excludedParameters'][] = 'tx_cartpaypal_cart[action]';
$GLOBALS['TYPO3_CONF_VARS']['FE']['cacheHash']['excludedParameters'][] = 'tx_cartpaypal_cart[controller]';This will not set the cHash and Paypal can append whatever it wants.
Will try that, many thanks !
If i place an order in sandbox mode, mails sent out.
if i change sandbox to 0, no mails are sent.
Any ideas?