diff --git a/readthedocs/payments/utils.py b/readthedocs/payments/utils.py index 4331dbe7508..7a9c4c4996d 100644 --- a/readthedocs/payments/utils.py +++ b/readthedocs/payments/utils.py @@ -10,7 +10,6 @@ from django.conf import settings stripe.api_key = settings.STRIPE_SECRET -stripe.api_version = settings.STRIPE_VERSION log = structlog.get_logger(__name__) diff --git a/readthedocs/settings/base.py b/readthedocs/settings/base.py index 20356edaaf4..4d4f3161c7e 100644 --- a/readthedocs/settings/base.py +++ b/readthedocs/settings/base.py @@ -176,7 +176,7 @@ def INSTALLED_APPS(self): # noqa 'django_filters', 'polymorphic', 'simple_history', - # 'djstripe', + 'djstripe', # our apps 'readthedocs.projects', @@ -755,11 +755,6 @@ def DOCKER_LIMITS(self): # Stripe # Existing values we use STRIPE_SECRET = None - # NOTE: Remove this when enabling djstripe, - # since isn't recommended to set this value, - # we should always use the default version - # that djstripe works with. - STRIPE_VERSION = "2020-08-27" STRIPE_PUBLISHABLE = None # DJStripe values -- **CHANGE THESE IN PRODUCTION** diff --git a/readthedocs/urls.py b/readthedocs/urls.py index d06e9fd4fa6..7675c573396 100644 --- a/readthedocs/urls.py +++ b/readthedocs/urls.py @@ -57,7 +57,7 @@ # For testing the 500's with DEBUG on. re_path(r'^500/$', handler500), # Put this as a unique path for the webhook, so we don't clobber existing Stripe URL's - # re_path(r"^djstripe/", include("djstripe.urls", namespace="djstripe")), + re_path(r"^djstripe/", include("djstripe.urls", namespace="djstripe")), ] project_urls = [