You should do POST request from controller.
uri = URI.parse("https://www.ccavenue.com/shopzone/cc_details.jsp")
http = Net::HTTP.new(uri.host, uri.port)
form_data = {
"Merchant_Id" => @Merchant_id,
"Amount" => @Amount,
"Order_Id" => @user_id,
"Redirect_Url" => @redirect_url,
"Checksum" => @checksum
}
request = Net::HTTP::Post.new(uri.request_uri)
request.set_form_data(form_data)
response = http.request(request)
You can use httparty gem to do post request.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…