Skip to content

Enable djstripe again #9385

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 30, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion readthedocs/payments/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__)


Expand Down
7 changes: 1 addition & 6 deletions readthedocs/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ def INSTALLED_APPS(self): # noqa
'django_filters',
'polymorphic',
'simple_history',
# 'djstripe',
'djstripe',

# our apps
'readthedocs.projects',
Expand Down Expand Up @@ -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**
Expand Down
2 changes: 1 addition & 1 deletion readthedocs/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down