http - How to pass POST Form Data from HTML to Java Rest Api -
i working on payment integration system in java rest api. gateway zaakpay. when user clicks proceed payment site redirected zaakpay payment gateway. after successful payment zaakpay redirects user returnurl.html
. transaction results sent returnurl.htm
l post form data in http request.
how capture post form data in request , how forward java rest api.
why payment gateway returning result
returnurl.html
?
i think must have specified somewhere indicate payment gateway return result url , instead can provide controller url path .
after in order intercept post request need method in controller , here example of jersey
based implementation of jax-rs
@post @path("/add") public response adduser( @formparam("name") string name, @formparam("age") int age) { <================do whatever need here ====================> return response.status(200) .entity("adduser called, name : " + name + ", age : " + age) .build(); }
Comments
Post a Comment