using proxy server with active merchant

139 views
Skip to first unread message

Mike

unread,
May 8, 2008, 1:48:29 PM5/8/08
to Active Merchant
Hi,

I have an rails ecommerce site uses active merchant to connect to my
payment gateway. I'm hosting the site on GoDaddy shared server and
they are telling me that I need to go through there secure proxy
server for SSL calls. Can anyone tell me how I can change the active
merchant plugin to use a proxy server for my SSL calls?

Thanks,
Mike

Cody Fauser

unread,
May 10, 2008, 9:05:14 AM5/10/08
to activem...@googlegroups.com
Mike,

We currently don't support proxy servers with ActiveMerchant, but you
should be able to hack support for it in
lib/active_merchant/lib/posts_data.rb

Then you could probably add some sort of inheritable accessor to the
base gateway class in lib/active_merchant/billing/gateway.rb that sets
the proxy server.

--
Cody Fauser
http://shopify.com - e-commerce done right
http://www.codyfauser.com - blog
http://peepcode.com/products/activemerchant-pdf - ActiveMerchant PeepCode
http://www.oreilly.com/catalog/rjsrails - RJS Templates for Rails

Mike

unread,
May 11, 2008, 9:18:50 PM5/11/08
to Active Merchant
Cody,

Thanks for your response on this subject. I actually did hack
posts_data and added Net::HTTP::Proxy but it still did not work. Can
you explain to me more about adding inheritable accessor to lib/
active_merchant/billing/gateway.rb? This is my first rails application
and still a newbie. Thanks again for any further assistance you can
give.

Mike

On May 10, 9:05 am, "Cody Fauser" <codyfau...@gmail.com> wrote:
> Mike,
>
> We currently don't support proxy servers with ActiveMerchant, but you
> should be able to hack support for it in
> lib/active_merchant/lib/posts_data.rb
>
> Then you could probably add some sort of inheritable accessor to the
> base gateway class in lib/active_merchant/billing/gateway.rb that sets
> the proxy server.
>
Reply all
Reply to author
Forward
0 new messages