Ghost/ghost
Fabien 'egg' O'Carroll d41e5f3b55 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 11:50:10 +02:00
..
magic-link Update dependency @types/node to v12.12.51 2020-07-20 22:51:48 +00:00
members-api Used mode to determine flow for checkout session (#184) 2020-07-21 11:50:10 +02:00
members-csv Published new versions 2020-07-08 20:23:05 +12:00
members-ssr Update dependency @types/node to v12.12.51 2020-07-20 22:51:48 +00:00