cancel
Showing results for 
Search instead for 
Did you mean: 

Setting payment information response performs too slow

SOLVED

Setting payment information response performs too slow

Hello guys,

 

The team is developing a payment GW / hosted payment page integration and generally, following the approach suggested by Adobe everything goes fine but we are facing a really odd situation - when obtaining and setting payment information by calling /rest/default/V1/guest-carts/<cart-id>/payment-information the operation always takes 2 min. Orders get created successfully but that step I mentioned above is just killing checkout performance.

Actually the first impression a client had was like having a broken checkout.

 

Instance we installed the integration extension is running in AWS, sessions are handled by Redis (no other lags or suspicious behavior regarding anything else but payment-information POST request), version is 2.3.6-p1 (Commerce).

The only think which comes in mind is some kind of a rate limiting applied or a request to a third-party service but we haven't set anything like that - just using default sample data installed from composer and nothing else.

 

One more detail - in order to deal with SameSite=Lax Chrome v80+ issue we got https://github.com/Veriteworks/CookieFix installed and set SameSite to be None for the resp. webstore.  

 

Going deeped we reached the place where quote card manager is calling placeOrder() - there goes the slow process, always taking 2 minutes. I also researched a bit and found the following https://github.com/magento/magento2/issues/28614 which could be somehow related. Google reCaptcha is not configured, neither any other layer, there is no CloudFlare, Fastly or anything else, just locally installed Redis to store sessions and cache.

 

UPDATE: same happens using any other method we've enabled - COD, Purchase Order ...

 

Any suggestions would be highly appreciated!

 

Best,

K.

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Setting payment information response performs too slow

Well, it may sound absolutely crazy but the problem comes by a badly configured / misconfigured sendmail.

 

Although, that should not stop customer any way, that's just ridiculous! Emails should be dispatched without harassing checkout UX.

 

Problem solved, hope that may help someone who's struggling resolving the same issue. 

View solution in original post

3 REPLIES 3

Re: Setting payment information response performs too slow

Well, it may sound absolutely crazy but the problem comes by a badly configured / misconfigured sendmail.

 

Although, that should not stop customer any way, that's just ridiculous! Emails should be dispatched without harassing checkout UX.

 

Problem solved, hope that may help someone who's struggling resolving the same issue. 

Re: Setting payment information response performs too slow

How did you fix it?

Re: Setting payment information response performs too slow

How did you fix it?