pinax / pinax-stripe-light

a payments Django app for Stripe
MIT License
686 stars 285 forks source link

card's foreign key to customer should be nullable #552

Open svilendobrev opened 6 years ago

svilendobrev commented 6 years ago

card webhook can bring a card that has customer=None/null. Current model rejects it

to Reproduce:

this happens if a subscription is created using stripetoken = dict( carddetails, object='card'). That creates a temporary source from the card, without customer.