In the angular website, the API folder is inside the SRC folder. I have given the API page URL as PayUMoney success URL to process response data from PayUMoney.
The path to success page is like this - "www.example.com/src/api//success.php". But It will redirect to angular base URL "www.example.com", I plan to process the success response on the PHP API page and then redirect to angular. But here angular not letting the PayUMoney response reach the rest API page.
In localhost, it will work because I can give the absolute path URL as the success URL. In test mode, it will be like" "http://localhost/projectname/src/api//success.php" and the actual website running URL will be "http://localhost:4200/". But in live mode, this is the only path I can give "www.example.com/src/api/success.php" and it is redirecting to home page.
What is the solution here? how can I send the PAYUMONEY response data to the API page?