Skip to content

Added reset for stripe related tables on Stripe disconnect#13013

Merged
rshbhgrg merged 1 commit into
TryGhost:mainfrom
rshbhgrg:reset-stripe-disconnect
Jun 8, 2021
Merged

Added reset for stripe related tables on Stripe disconnect#13013
rshbhgrg merged 1 commit into
TryGhost:mainfrom
rshbhgrg:reset-stripe-disconnect

Conversation

@rshbhgrg
Copy link
Copy Markdown
Contributor

@rshbhgrg rshbhgrg commented Jun 8, 2021

closes TryGhost/Team#724

Currently, we allow site owners to Disconnect Stripe if they don't have any active subscriptions for a member. On disconnect, we want to remove all stripe related data for the old account in DB in these tables - members_stripe_customers, members_stripe_customers_subscriptions, stripe_products, stripe_prices , which can otherwise cause issues as the Stripe IDs referred to in these tables might be pointing to a different stripe account than one connected.

@rshbhgrg rshbhgrg force-pushed the reset-stripe-disconnect branch from 24992ec to 891d39d Compare June 8, 2021 15:44
@rshbhgrg rshbhgrg marked this pull request as ready for review June 8, 2021 15:51
closes https://github.com/TryGhost/Team/issues/724
closes https://github.com/TryGhost/Team/issues/739

Currently, we allow site owners to disconnect Stripe if they don't have any active subscriptions for a member. On disconnect, we want to remove all stripe related data for the old account in DB in these tables - `members_stripe_customers`, `members_stripe_customers_subscriptions`, `stripe_products`, `stripe_prices` , which is otherwise causing issues as the Stripe IDs referred to in these tables can be pointing to a different stripe account than one connected.

This was also causing site owners to not be able to create new prices after connecting to new account as we ended up using old stripe product belonging to different account which failed.
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 this pull request may close these issues.

1 participant