Skip to content

Subscriptions: use stripe subscriptions to show details #9550

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 3 commits into from
Sep 1, 2022

Conversation

stsewd
Copy link
Member

@stsewd stsewd commented Aug 25, 2022

Ref #9312


📚 Documentation previews 📚

@stsewd stsewd marked this pull request as ready for review August 25, 2022 19:34
@stsewd stsewd requested review from a team as code owners August 25, 2022 19:34
@stsewd stsewd requested review from agjohnson and humitos August 25, 2022 19:34
Copy link
Member

@humitos humitos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! I think it's pretty close to get merged. Before merging, I think we need to solve the problems with

  • Organizations without .stripe_id nor .stripe_customer hitting the subscription's detail page
  • date for period end on subscription's detail page for "unpaid" or "past_due" subscriptions

Comment on lines +124 to +126
if not subscription:
# This only happens during development.
return None
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it makes sense to use the following?

Suggested change
if not subscription:
# This only happens during development.
return None
if settings.DEBUG and not subscription:
# This only happens during development.
return None

@stsewd stsewd requested a review from humitos August 31, 2022 15:33
@agjohnson agjohnson linked an issue Aug 31, 2022 that may be closed by this pull request
@stsewd stsewd merged commit 3e5b72d into main Sep 1, 2022
@stsewd stsewd deleted the use-stripe-subs-on-detail-view branch September 1, 2022 14:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Subscriptions: convert Subscription model to use djstripe
3 participants