Hi everyone,
I'm using a payment module from Paybox. This module is a CGI script that I execute like a shell command with backticks :
`#{Rails.root}/public/cgi/modulev3.cgi [params]`
This module outputs a complete HTTP response, including headers and body :
Content-type: text/html
Cache-Control: no-cache, no-store
Pragma: no-cache
<HTML>
<HEAD> ... </HEAD>
<BODY> Here goes a secured form that is automatically posted to the payment provider server </BODY>
</HTML>
The problem is that Rails handles automatically the construction of the response. I know that I can customize the Headers, but since the module builds an entire HTTP response from scratch, I'd like to send it to the browser as is.
I used this payment module on a PHP / Codeigniter project and it was straightforward. No use of a view, and directly from the controller :
echo shell_exec(PAYMENT_MODULE_PATH .$config_string);
How can I do the same and bypass Rails views / response handling ?