Permalink
Browse files

Stripe: Allow API key to be nil

  • Loading branch information...
1 parent b241b7a commit fbefdc8f53ea53363abe5d26b0c4c8046a077e1c @gdb gdb committed Jun 27, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/active_merchant/billing/gateways/stripe.rb
@@ -136,7 +136,7 @@ def headers
})
{
- "Authorization" => "Basic " + ActiveSupport::Base64.encode64(@api_key+":").strip,
+ "Authorization" => "Basic " + ActiveSupport::Base64.encode64(@api_key.to_s + ":").strip,
"User-Agent" => "Stripe/v1 ActiveMerchantBindings/#{ActiveMerchant::VERSION}",
"X-Stripe-Client-User-Agent" => @@ua
}

0 comments on commit fbefdc8

Please sign in to comment.