Ghost/ghost/members-api
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
..
lib Populate stripe prices and products for existing customers (#258) 2021-04-12 20:38:01 +05:30
test Added tests for smart_cancel param 2021-03-30 10:36:17 +01:00
.eslintrc.js Added default test dir and eslintrc 2019-05-07 17:35:17 +02:00
.gitignore Refactor members-api (#231) 2021-01-18 13:55:40 +00:00
index.js Populate stripe prices and products for existing customers (#258) 2021-04-12 20:38:01 +05:30
package.json Published new versions 2021-04-12 15:31:32 +01:00