1

After I updated from 2.2.3 to 2.3.2 I am being redirected to the empty shopping cart after a successful PayPal payment. The order is created normally I just get the empty cart instead of the success page. The logs contain nothing helpful.

Any ideas where to look? I emptied the cache, recompiled, deployed the content, deleted the /generated folder. Nothing helped.

Thanks!

3
  • Using vanilla paypal extension? Commented Jan 28, 2020 at 20:40
  • Yes, the vanilla one
    – EOB
    Commented Jan 28, 2020 at 21:37
  • Is there any working solution by now? We have the same issue only with payments via Paypal.
    – Marcel
    Commented Sep 10, 2020 at 7:19

2 Answers 2

2

I face same issue on magento 2.3.4-p2 with Gene Braintree Paypal

Logs was showing 302 redirects after payment. Session was timetout and this happen when you enter on that point checkout/onepage/success/ its simply redirecting to empty basket.

Solution that work for me if you use Redis:

php bin/magento setup:config:set --session-save-redis-break-after-frontend=15

this change break_after_frontend in

app/etc/env.php

'session' => [
    'save' => 'redis',
    'redis' => [
        'host' => 'yourhost',
        'port' => 'yourport',
        'password' => '',
        'timeout' => '2.5',
        'persistent_identifier' => '',
        'database' => '2',
        'compression_threshold' => '2048',
        'compression_library' => 'gzip',
        'log_level' => '1',
        'max_concurrency' => '12',
        'break_after_frontend' => '15',
        'break_after_adminhtml' => '30',
        'first_lifetime' => '600',
        'bot_first_lifetime' => '60',
        'bot_lifetime' => '7200',
        'disable_locking' => '0',
        'min_lifetime' => '60',
        'max_lifetime' => '2592000'
    ]
],
3
  • This seems to be the answer for this issue but I haven't seen too many people say if it fixes the problem. Has anyone found success with this change?
    – TheRealJAG
    Commented Aug 18, 2020 at 4:32
  • 1
    Me for example but I use Gene Braintree PayPal solution. This issue happen actually after switch to this module. REDIS on elastic cache AWS
    – BartZalas
    Commented Aug 18, 2020 at 18:29
  • It works for me with Magento 2.4.4-p4 Commented Sep 1, 2023 at 13:44
0

I solved this issue by remove static blocks (like general business terms) from the order confirmation email template

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.