If your server requires HTTP requests to be made through a proxy, you can follow these steps to set up proxies for the server-side SDK.
Set a proxy address and port in your gateway:
gateway = Braintree::Gateway.new( :environment => :sandbox, :merchant_id => "use_your_merchant_id", :public_key => "use_your_public_key", :private_key => "use_your_private_key", :proxy_address => "http://your-proxy-domain.com", :proxy_port => "8080", )
To use an authenticated proxy, you can additionally specify a username and password:
gateway = Braintree::Gateway.new( :proxy_user => "username", :proxy_pass => "password", )
Still have questions?
If you can’t find an answer, contact our Support team