pinax / pinax-stripe-light

a payments Django app for Stripe
MIT License
687 stars 286 forks source link

Create customer without a User model #327

Open nickpolet opened 7 years ago

nickpolet commented 7 years ago

Is it possible to create a customer and have the relevant webhooks and methods created for a model that is not a User?

For example, I have User models (which are users) and Business models (which have users attached to them). Users can make payments and so can businesses. I have attached customer objects to the users and would like to do the same with businesses.

If this is not possible, how do I handle the webhooks that pinax stripe handles? I would like businesses to have default payment methods and (eventually) subscriptions.

Or is this something that I should just be using stripe-python for? Just thought I'd ask to save me having to mix and match pinax-stripe with a custom solution.

Any help would be great.

camflan commented 7 years ago

I'm also working on a project that has subscriptions tied to a model other than User. If there's a way to swap out the User model dependency easily, I'd love to know. I'm trying a few different django <-> stripe solutions and would love to give this one a try too

Ramblurr commented 5 years ago

I also ran into this, and so can't use pinax-stripe it seems.