Skip to content

Commit 86befd2

Browse files
authored
Enable djstripe again (#9385)
Reverts #9282
1 parent 634f85b commit 86befd2

File tree

3 files changed

+2
-8
lines changed

3 files changed

+2
-8
lines changed

readthedocs/payments/utils.py

-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
from django.conf import settings
1111

1212
stripe.api_key = settings.STRIPE_SECRET
13-
stripe.api_version = settings.STRIPE_VERSION
1413
log = structlog.get_logger(__name__)
1514

1615

readthedocs/settings/base.py

+1-6
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ def INSTALLED_APPS(self): # noqa
176176
'django_filters',
177177
'polymorphic',
178178
'simple_history',
179-
# 'djstripe',
179+
'djstripe',
180180

181181
# our apps
182182
'readthedocs.projects',
@@ -755,11 +755,6 @@ def DOCKER_LIMITS(self):
755755
# Stripe
756756
# Existing values we use
757757
STRIPE_SECRET = None
758-
# NOTE: Remove this when enabling djstripe,
759-
# since isn't recommended to set this value,
760-
# we should always use the default version
761-
# that djstripe works with.
762-
STRIPE_VERSION = "2020-08-27"
763758
STRIPE_PUBLISHABLE = None
764759

765760
# DJStripe values -- **CHANGE THESE IN PRODUCTION**

readthedocs/urls.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
# For testing the 500's with DEBUG on.
5858
re_path(r'^500/$', handler500),
5959
# Put this as a unique path for the webhook, so we don't clobber existing Stripe URL's
60-
# re_path(r"^djstripe/", include("djstripe.urls", namespace="djstripe")),
60+
re_path(r"^djstripe/", include("djstripe.urls", namespace="djstripe")),
6161
]
6262

6363
project_urls = [

0 commit comments

Comments
 (0)