Skip to content

Commit

Permalink
Upgrade stripe Python package to the latest version
Browse files Browse the repository at this point in the history
  • Loading branch information
humitos committed Nov 15, 2018
1 parent 4fa2746 commit 5791195
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion readthedocs/gold/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def get_subscription(self):
customer = self.get_customer()

# TODO get the first subscription more intelligently
subscriptions = customer.subscriptions.all(limit=5)
subscriptions = customer.subscriptions.list(limit=5)
if subscriptions.data:
# Update an existing subscription - Stripe prorates by default
subscription = subscriptions.data[0]
Expand Down
2 changes: 1 addition & 1 deletion readthedocs/gold/tests/test_forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ def test_update_subscription_plan(self):
mock.ANY,
mock.ANY),
mock.call('post',
'/v1/customers/cus_12345/subscriptions/sub_12345',
'/v1/subscriptions/sub_12345',
{'source': mock.ANY, 'plan': 'v1-org-5'},
mock.ANY),
])
2 changes: 1 addition & 1 deletion readthedocs/payments/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from builtins import object
import logging

from stripe.resource import Customer, Charge
from stripe import Customer, Charge
from stripe.error import InvalidRequestError
from django import forms
from django.utils.translation import ugettext_lazy as _
Expand Down
5 changes: 1 addition & 4 deletions requirements/pip.txt
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,7 @@ beautifulsoup4==4.6.3
Unipath==1.1
django-kombu==0.9.4
mock==2.0.0

# stripe 1.20.2 is the latest compatible with our code base (otherwise
# gold/tests/test_forms.py fails)
stripe==1.20.2
stripe==2.12.0

django-formtools==2.1

Expand Down

0 comments on commit 5791195

Please sign in to comment.