Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

default payment method not detached #1836

Open
patroqueeet opened this issue Oct 28, 2022 · 3 comments
Open

default payment method not detached #1836

patroqueeet opened this issue Oct 28, 2022 · 3 comments
Assignees
Labels
discussion The premise or details of this issue is open for discussion

Comments

@patroqueeet
Copy link

to reproduce: in stripe UI remove a default payment method from customer, which in Django db is attached to Customer.default_payment_method. DJ DB looks like after: payment method existing, but with no customer attached, but Customer.default_payment_method is still linking to it. hence when checking in Django if there is a payment method attached, a wrong result is returned

Describe the solution you'd like
detach default payment method, when method itself is removed

Additional context
stripe==2.5.1

@patroqueeet patroqueeet added the discussion The premise or details of this issue is open for discussion label Oct 28, 2022
@arnav13081994 arnav13081994 self-assigned this Nov 1, 2023
@arnav13081994
Copy link
Collaborator

@patroqueeet Verified this. This is happening but this is not a djstripe bug. This is how we get the JSON from stripe. For some reason it is still updating the default_source but not the default_payment_method.

Can you tell me what is your Stripe API version?

@patroqueeet
Copy link
Author

2017***

@arnav13081994
Copy link
Collaborator

Unfortunately this is the behaviour in 2020 and 2023 api versions it seems. So lets keep this issue open to track this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion The premise or details of this issue is open for discussion
Projects
None yet
Development

No branches or pull requests

2 participants