Skip to content

BillingAccount feature and others#49

Open
Mte90 wants to merge 21 commits into
oscarychen:masterfrom
Mte90:master
Open

BillingAccount feature and others#49
Mte90 wants to merge 21 commits into
oscarychen:masterfrom
Mte90:master

Conversation

@Mte90

@Mte90 Mte90 commented Dec 1, 2025

Copy link
Copy Markdown
Contributor

With the help of GitHub CoPilot I implemented some new stuff (that I already tested and using).

  • CUSTOMER_PORTAL_RETURN_URL_PATH to customize the URL from the Stripe custom portal to go back to the django instance
  • BillingAccount feature, basically in case you need to have a membership associate to multiple users or to a specific model
    • Includes a manager_user that is the one that can pay basically
    • It is based on a settings variable to set the model and a command to migrate the data
    • AbstractBillingAccount it is the model to extend in the django app
    • DEFAULT_MAX_SUBSCRIPTION_QUANTITY another settings to set the maximum amount of subscription items for the user/billing
  • Some bugfixes
  • Tests

Probably is not perfect, it works, but I am still testing to see if there are issues with this integration. I suggest doing a squash merge for the vvarious commits.

Mte90 and others added 21 commits November 20, 2025 18:48
…ignKey fields

Co-authored-by: Mte90 <403283+Mte90@users.noreply.github.com>
Co-authored-by: Mte90 <403283+Mte90@users.noreply.github.com>
…IPTION_QUANTITY setting

Co-authored-by: Mte90 <403283+Mte90@users.noreply.github.com>
Co-authored-by: Mte90 <403283+Mte90@users.noreply.github.com>
Co-authored-by: Mte90 <403283+Mte90@users.noreply.github.com>
Co-authored-by: Mte90 <403283+Mte90@users.noreply.github.com>
Co-authored-by: Mte90 <403283+Mte90@users.noreply.github.com>
Co-authored-by: Mte90 <403283+Mte90@users.noreply.github.com>
…TITY

Co-authored-by: Mte90 <403283+Mte90@users.noreply.github.com>
Co-authored-by: Mte90 <403283+Mte90@users.noreply.github.com>
Co-authored-by: Mte90 <403283+Mte90@users.noreply.github.com>
Co-authored-by: Mte90 <403283+Mte90@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: Daniele Scasciafratte <mte90net@gmail.com>
Co-authored-by: Mte90 <403283+Mte90@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: Mte90 <403283+Mte90@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
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.

2 participants