I have some express.js app and I have a "Pay" button in my UI.
When I click on it, I want the server to call the checkout API of Stripe and then return a response only when I get the response from the API call (card can be expired, for example).
I know it's a bad practice, but how can my response wait till the async call finishes?
And what's the right way to do such call in express.js?