i am trying to post some parameters to a payment website like the following. If i run a jsp, that will pass the parameters to the controller and from the controller i am trying to post the values received from the jsp and trying to get the reponse in the same controller. But i dont know how to find whether the controller gets connected with the payment websit and request has been sent from my end. I dont whether my code is correct and i am following the correct procedure. please assist me to do this. i am posting the code also.
When i try to print the variable "line", I am getting null.
When I'm doing a quick check to verify that a POST has been received by the server, I tend to simplify my code, for instance only sending one variable. The payment module should have an API function you can call (it should send a simple "OK" type of response) simply to verify that you're making the call correctly. If your code isn't working, I'd recommend that you try one of those two options.