Ghost/ghost/members-api
Fabien 'egg' O'Carroll 9f1b9d6156 Used mode to determine flow for checkout session (#184)
no-issue

This fixes a problem when subscribing to a Plan (Price) with a default
trial period. We also add logging to add a little more information about
which flow we're entering.

Subscriptions that are started with a trial have a `setup_intent`
present on the Checkout Session object, which was incorrectly causing us
to determine that we are in a "setup" flow and attempt to update a
customers card details.

We now use the `mode` property of the Checkout Session to determine
whether we are handling a new Subscription, or if we are in a "setup"
flow and should update the Customer's card details.
2020-07-21 12:03:16 +02:00
..
lib Added cleanup on startup for old webhooks (#181) 2020-07-20 17:54:22 +02:00
test Store geolocation data during member signup/signin (#128) 2020-02-27 10:29:36 +00:00
.eslintrc.js Added default test dir and eslintrc 2019-05-07 17:35:17 +02:00
index.js Used mode to determine flow for checkout session (#184) 2020-07-21 12:03:16 +02:00
package.json Published new versions 2020-07-21 12:02:36 +02:00
tsconfig.json Published new versions 2020-06-18 18:03:46 +02:00