Permalink
Browse files

Fix Invoice.upcoming call

  • Loading branch information...
1 parent 22742fc commit cf1341659020c6100977b618b92831967de4bde1 @gdb gdb committed Jun 1, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 stripe/__init__.py
View
@@ -553,8 +553,8 @@ def cancel_subscription(self):
class Invoice(ListableAPIResource):
@classmethod
- def upcoming(cls, **params):
- requestor = APIRequestor(self.api_key)
+ def upcoming(cls, api_key=None, **params):
+ requestor = APIRequestor(api_key)
url = self.class_url() + '/upcoming'
response, api_key = requestor.request('get', url, params)
return convert_to_stripe_object(response, api_key)

0 comments on commit cf13416

Please sign in to comment.