Skip to content

Redesign Squarelet billing pages#716

Draft
dnass wants to merge 87 commits into
update-payment-handling-multiple-subscriptionsfrom
677-redesign-billing
Draft

Redesign Squarelet billing pages#716
dnass wants to merge 87 commits into
update-payment-handling-multiple-subscriptionsfrom
677-redesign-billing

Conversation

@dnass

@dnass dnass commented Jul 6, 2026

Copy link
Copy Markdown

No description provided.

@allanlasser allanlasser temporarily deployed to squarelet-pi-677-redesi-v2n1vz July 6, 2026 21:20 Inactive
@allanlasser allanlasser temporarily deployed to squarelet-pi-677-redesi-v2n1vz July 6, 2026 21:21 Inactive
@allanlasser allanlasser temporarily deployed to squarelet-pi-677-redesi-v2n1vz July 7, 2026 13:29 Inactive
@allanlasser allanlasser temporarily deployed to squarelet-pi-677-redesi-v2n1vz July 7, 2026 19:22 Inactive

@mitchelljkotler mitchelljkotler left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This looks like it is still under development, let me know if you have any questions

Comment thread squarelet/organizations/views/detail.py Outdated
context["subscriptions"] = subscriptions

# Get card on file
customer = self.object.customer()

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Having to write this check out every time is not good - I left this in my branch, but I am going to update this so customer.card just returns the actual card object you want - I will let you know when that is merged in so you can update on your branch

form_class = UpdateSubscriptionFrequencyForm
template_name = "subscriptions/update_subscription_frequency.html"

def get_queryset(self):

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

You shouldn't need to override get_queryset or get_object here - it should do the right thing if you pass in a slug as a kwarg from the URL

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

The route 404s when I remove these overrides. The URL also contains the subscription pk, could that be the issue?

form_class = CancelSubscriptionForm
template_name = "subscriptions/cancel_subscription.html"

def get_queryset(self):

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Same here

Comment thread squarelet/users/views.py Outdated
@dnass

dnass commented Jul 7, 2026

Copy link
Copy Markdown
Author

@mitchelljkotler Thanks for reviewing. The only piece of this I haven't tackled yet is switching from a monthly plan to annual or vice versa. I'm happy to take a crack at it if you can lay out the general approach for me.

@mitchelljkotler mitchelljkotler force-pushed the update-payment-handling-multiple-subscriptions branch from 452a3ad to 2b41be1 Compare July 8, 2026 13:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants