pinax-stripe-light icon indicating copy to clipboard operation
pinax-stripe-light copied to clipboard

Questioning UserAccount through model

Open blueyed opened this issue 7 years ago • 1 comments

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 ?

blueyed avatar Dec 04 '17 15:12 blueyed

I think User + Stripe Account unique constraint is desirable also. That is what UserAccount is providing.

ticosax avatar Dec 05 '17 08:12 ticosax