realex icon indicating copy to clipboard operation
realex copied to clipboard

Using a proxy

Open solasdev opened this issue 10 years ago • 1 comments

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.

solasdev avatar Aug 23 '14 00:08 solasdev

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

paulca avatar Aug 23 '14 15:08 paulca