realex
realex copied to clipboard
Using a proxy
Hi I need to use a proxy address during connection with Realex, I buy a static ip address with Heroku to use otherwise Heroku provides different ip's all the time making them impossible to whitelist with Realex.
Iv'e forked the gem and the HTTP connection now looks like:
h = Net::HTTP.new('epage.payandshop.com', 443, 'http://54.75.227.164', 80) h.use_ssl = true response = h.request_post(url, xml)
However all I get from response is - Net::HTTPServerException: 403 "Forbidden" and when I remove use_ssl, repsonse hash is empty.
Any thoughts on this? Really stuck on it.
No idea ... but if you're proxying, could you just set up your proxy server as a reverse proxy server and make requests directly to it rather than epage.payandshop.com?
—P