title: Call a javascript alert function on our UI from asp .net core 6.0
body: <p>I am working a payment API with asp.net core 6.0  and react .</p>
  <p>If Payment is success I need to send a alert message on our website ( now the page is <a href="https://test.sagepay.com/mpitools/accesscontroler?action=pareq" rel="nofollow noreferrer">https://test.sagepay.com/mpitools/accesscontroler?action=pareq</a> which is opayo UI. After the payment success I need to redirect to out website and send a alert message on our page.)</p>
  <p>How do I do this?</p>
  <p>Note:</p>
  <p>I know how to redirect a page from asp.net core.</p>
  <p><code>return Redirect($&quot;http://localhost:4200/payment-done/{transactionId}/{result.Status}&quot;);</code>
  I did this for redirect to a new separate page with transactionId and Status.</p>
  <p>But now I want to redirect the same page which I already use to getting card_Details for payment from user and, I want to show a alert message That is &quot;Your Payment is successfully added&quot;</p>
  <p>BUT I don't know how to call a alert function. How can I do that?</p>