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

Actions to delete accounts/bank accounts/cards #569

Open
georgy95 opened this issue Jun 21, 2018 · 0 comments · Fixed by #570
Open

Actions to delete accounts/bank accounts/cards #569

georgy95 opened this issue Jun 21, 2018 · 0 comments · Fixed by #570

Comments

@georgy95
Copy link

georgy95 commented Jun 21, 2018

Issue Summary

Right now, we are able to sync accounts from current stripe data, but it would be great to have actions to do with deletions.

For example: User creates a custom account, which automatically creates an external bank account.

If this user changes their payment method and decides to add new account (using stripe API), we can sync_account() using actions.

However, the user now wants to delete their previous (very first external bank account). We do this using stripe API:

account = stripe.Account.retrieve("acct_19c2PSCoyI6kORCB")
account.external_accounts.retrieve("ba_1CfV4JCoyI6kORCBWALOqwBd").delete()

But this time, we need to manually remove this from BankAccount model, because syncing the data will not remove, but instead only add/update existing accounts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant