From fbefdc8f53ea53363abe5d26b0c4c8046a077e1c Mon Sep 17 00:00:00 2001 From: Greg Brockman Date: Sun, 26 Jun 2011 17:13:41 -0700 Subject: [PATCH] Stripe: Allow API key to be nil --- lib/active_merchant/billing/gateways/stripe.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/active_merchant/billing/gateways/stripe.rb b/lib/active_merchant/billing/gateways/stripe.rb index 569fbc4ac01..b34e2d4f230 100644 --- a/lib/active_merchant/billing/gateways/stripe.rb +++ b/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 }