Skip to content

Instantly share code, notes, and snippets.

@matthodan
Created August 2, 2010 06:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matthodan/504197 to your computer and use it in GitHub Desktop.
Save matthodan/504197 to your computer and use it in GitHub Desktop.
# Setup ActiveMerchant for development mode with Paypal Sandbox
config.after_initialize do
ActiveMerchant::Billing::Base.mode = :test
::GATEWAY = ActiveMerchant::Billing::PaypalGateway.new(
:login => '[Add PayPal API login here]',
:password => '[Add PayPal API password here]',
:signature => '[Add PayPal API signature here]'
)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment