pinax-stripe-light
pinax-stripe-light copied to clipboard
Questioning UserAccount through model
I think we actually do not need the UserAccount through model to ensure uniqueness of users per Stripe account.
There is stripe_account on Customers already, and therefore using the UniquePerAccountStripeObject for Customer (i.e. making stripe_id+stripe_account unique together) might be enough already.
This would result then in multiple Customer objects for multiple users, based on if (and which) Stripe account is used.
Am I missing something, @ticosax ?
I think User + Stripe Account unique constraint is desirable also. That is what UserAccount is providing.