Payment App - Timeout after 5s, how to handle it? #3375
Unanswered
ChristopherDosin
asked this question in
App FAQ
Replies: 1 comment 1 reply
-
Hey @ChristopherDosin We'll take care of this by increasing the timeout to 20 seconds. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What kind of question do you have about the app system?
Payment integration
Describe your question or feedback
Good Morning my friends,
It's about the implementation of a Payment handler for a Shopware App.
Within the Storefront the user can buy something and pay with the payment handler - It's a B2B payment App.
That being said, we're doing an API call to the payment handler and we're waiting for the response.
Since it's a B2B payment handler, there are quite some checks in the background from them against the customer who wants to pay with them.
Currently it takes around 3s.
However: Shopware set's a timeout to only 5s here ->
NEXT-22775 - Add app timeout · shopware/shopware@1df7491 (github.com)
That being said:
If the API would take 6s for whatever reason, Shopware would throw a failure after 5s, the customer within the storefront would see a payment failure and Shopware mark the payment as failed.
But 1s later, for the payment handler it's authorized successfully, while the customer in the storefront thinks it's failed.
Can you point us here into the right direction, what's the reason for only 5s and how should we handle this?
Beta Was this translation helpful? Give feedback.
All reactions