fnando/paypal-recurring

Use it without sandbox

Opened this issue · 2 comments

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

I would like to use it in production.

Thanks.

just set config.sandbox = false

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