Ghost/ghost/members-api/lib/services
Rishabh Garg 836b7f235e Populate stripe prices and products for existing customers (#258)
refs https://github.com/TryGhost/Team/issues/586

On Ghost Boot, as part of configuring Stripe, this populates stripe products and prices for existing stripe customers in the newly created `stripe_prices` and `stripe_products` table, which allows us to map existing customers to default Ghost product and on current prices. The population script on boot is only run if we find -

- A Ghost Product
- No rows in `stripe_products`
- No rows in `stripe_prices`
- One or more rows in `members_stripe_customers_subscriptions`
2021-04-12 20:38:01 +05:30
..
geolocation Refactor members-api (#231) 2021-01-18 13:55:40 +00:00
stripe-api Populate stripe prices and products for existing customers (#258) 2021-04-12 20:38:01 +05:30
stripe-plans Updated Stripe major version and types (#256) 2021-04-09 21:11:16 +05:30
stripe-webhook Updated Stripe major version and types (#256) 2021-04-09 21:11:16 +05:30
token Refactor members-api (#231) 2021-01-18 13:55:40 +00:00