-
Notifications
You must be signed in to change notification settings - Fork 9
Feat/use stripe customer portal #185
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
Conversation
kuboschek
commented
Jul 31, 2025
- Use Stripe Checkout for signups
- Use Stripe Customer Portal for adjusting subscriptions
tkw1536
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good in principle, except for the minor comments.
alumni/fields/tier.py
Outdated
| @staticmethod | ||
| def get_tier_from_stripe_id(stripe_id: str) -> str: | ||
| """Maps a Stripe plan ID to a membership tier.""" | ||
| stripe_to_tier_map = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this be a global map (as in outsider the function)?
| pass | ||
|
|
||
|
|
||
| class CancellablePaymentMethodForm(PaymentMethodForm): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a reason for this class? Both it and the parent class are empty. Wouldn't one be enough?
payments/views.py
Outdated
| # if this was not created from an update operation, do nothing | ||
| if not validated.created_from_update: | ||
| return super().dispatch_success(validated) | ||
| def dispatch_success(self, validated: Any) -> HttpResponse: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you're passing validated to the redirect response, shouldn't the type be str or something?
|
@tkw1536 There are two realities - one in which Selenium tests are hard to fix and one in which I am not good at writing Selenium tests. Help |
|
It looks like it's trying to test the old stripe integration and failing those tests. Possibly because you've some part of it. |