fnando / paypal-recurring

PayPal Express Checkout API Client for recurring billing.
256 stars 124 forks source link

Use it without sandbox #20

Open julio336 opened 11 years ago

julio336 commented 11 years ago

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

I would like to use it in production.

Thanks.

mahkhaled commented 11 years ago

just set config.sandbox = false

rapcal commented 11 years ago

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