Skip to content

Commit

Permalink
Stripe: Allow API key to be nil
Browse files Browse the repository at this point in the history
  • Loading branch information
gdb committed Jun 27, 2011
1 parent b241b7a commit fbefdc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/active_merchant/billing/gateways/stripe.rb
Expand Up @@ -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
}
Expand Down

0 comments on commit fbefdc8

Please sign in to comment.