mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-09-21 09:59:27 +03:00
Turn your audience into a business. Publishing, memberships, subscriptions and newsletters.
bloggingcmsemberghosthacktoberfestheadless-cmsjamstackjavascriptjournalismnodejspublishingweb-application
9f1b9d6156
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. |
||
---|---|---|
ghost |