How to return response after async call is finished? : <p>I have some express.js app and I have a "Pay" button in my UI.</p>

<p>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).</p>

<p>I know it's a bad practice, but how can my response wait till the async call finishes?</p>

<p>And what's the right way to do such call in express.js?</p>
