Skip to content
This repository has been archived by the owner on Dec 19, 2019. It is now read-only.

Use it without sandbox #20

Open
julio336 opened this issue Dec 21, 2012 · 2 comments
Open

Use it without sandbox #20

julio336 opened this issue Dec 21, 2012 · 2 comments

Comments

@julio336
Copy link

How can I use the gem without the option of sandbox?

I would like to use it in production.

Thanks.

@mahkhaled
Copy link

just set config.sandbox = false

@rapcal
Copy link

rapcal commented Aug 18, 2013

If you want sandbox mode to be dynamically set, you could do something like this on PayPal::Recurring initializer:

if Rails.env.development? || Rails.env.test?
  config.sandbox = true
else
  config.sandbox = false
end

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants