I am looking to initiate the following action - (for example: Upon clicking a button, it should direct to this , similar to how payment gateways function) and then, I need to input the user script below:
getRealData('{"mailing":{"postalCode":"111","city":"NJ"},"terminal":"222"}');
What is the approach to achieve this in AJS 1.x?
getRealData is a publicly accessible method within the web application.