Skip to content

Create new PlanPurchaseForm with resuable templates#570

Open
allanlasser wants to merge 7 commits intomasterfrom
allanlasser/522-refactor-PlanPaymentForm
Open

Create new PlanPurchaseForm with resuable templates#570
allanlasser wants to merge 7 commits intomasterfrom
allanlasser/522-refactor-PlanPaymentForm

Conversation

@allanlasser
Copy link
Member

Fixes #522

Refactors our plan.html and payments/views.py logic into a PlanPurchaseForm that renders a plan_purchase.html template. This isolates our payment handling logic, makes it more reusable, and is more aligned with Django's approach.

@allanlasser allanlasser self-assigned this Feb 3, 2026
@allanlasser allanlasser temporarily deployed to squarelet-pi-allanlasse-z13umz February 3, 2026 20:16 Inactive
@allanlasser allanlasser temporarily deployed to squarelet-pi-allanlasse-z13umz February 3, 2026 20:26 Inactive
@mitchelljkotler mitchelljkotler temporarily deployed to squarelet-pi-allanlasse-tal7ft February 11, 2026 21:04 Inactive
@mitchelljkotler mitchelljkotler temporarily deployed to squarelet-pi-allanlasse-aiuioe February 11, 2026 21:16 Inactive
Copy link
Member

@mitchelljkotler mitchelljkotler left a comment

Choose a reason for hiding this comment

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

I found one issue with the use card on file choice, but otherwise think refactoring into a form and moving the logic out of the view is a big win.

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.

Refactor a PlanPaymentForm from payment/views.py

2 participants