Skip to content

Strange behavior when sandbox = 0 #21

Description

@slowhand11

If i place an order in sandbox mode, mails sent out.
if i change sandbox to 0, no mails are sent.

Any ideas?

Activity

  1. Hertel84 commented on Jun 10, 2021

    @Hertel84

    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?

  2. slowhand11 commented on Jun 11, 2021

    @slowhand11
    Author

    Thanks,

    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.

  3. sbublies commented on Aug 20, 2021

    @sbublies

    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.

  4. slowhand11 commented on Aug 20, 2021

    @slowhand11
    Author

    Will try that, many thanks !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions