I have a payment page in which after entering the user data and clicked the pay button, it should redirect to a third-party payment page with all the payment info and after the payment success or failed it should return back to same page with the correct response.