From a95da742d485a00d77fe0dcbe7243703d4fc6618 Mon Sep 17 00:00:00 2001 From: Evan Broder Date: Wed, 1 May 2013 15:02:34 -0700 Subject: [PATCH] Pass the customer-specific API key when getting the upcoming invoice --- lib/stripe/customer.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/stripe/customer.rb b/lib/stripe/customer.rb index 887114de..e49d95ff 100644 --- a/lib/stripe/customer.rb +++ b/lib/stripe/customer.rb @@ -18,7 +18,7 @@ module Stripe end def upcoming_invoice - Invoice.upcoming({ :customer => id }) + Invoice.upcoming({ :customer => id }, @api_key) end def charges