0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-24 23:48:13 -05:00

🐛 Fixed handling of "incomplete" subscriptions

refs https://github.com/TryGhost/Team/issues/1156

When a payment fails but Stripe Checkout succeeds, a subscription is
created in the "incomplete" status. This would result in a Member not
being linked to the Product. When the subscription was later updated to
"active" or trialing - the Product would still not be added!

This updates the members-api to always link the Product to the Member
for active subscriptions - regardless of if they're new or not.
This commit is contained in:
Fabien O'Carroll 2021-10-18 14:39:28 +02:00
parent 5d60b564af
commit 67b517e1fb
2 changed files with 5 additions and 5 deletions

View file

@ -79,7 +79,7 @@
"@tryghost/limit-service": "0.6.4",
"@tryghost/logging": "0.2.2",
"@tryghost/magic-link": "1.0.13",
"@tryghost/members-api": "2.2.2",
"@tryghost/members-api": "2.2.3",
"@tryghost/members-csv": "1.1.7",
"@tryghost/members-importer": "0.3.3",
"@tryghost/members-offers": "0.6.1",

View file

@ -1505,10 +1505,10 @@
"@tryghost/domain-events" "^0.1.2"
"@tryghost/member-events" "^0.2.1"
"@tryghost/members-api@2.2.2":
version "2.2.2"
resolved "https://registry.yarnpkg.com/@tryghost/members-api/-/members-api-2.2.2.tgz#5cbc2f748dc1f5f0ebecf11fecb1ded4f3768055"
integrity sha512-jzsgxRJXm229pE+U7CvjfZm/4U8h2EEUzblpEDYIQEWiUb3WOl7ZMUGmjVJG+M0gkhIaxs1PCnhg3w2urrCwIg==
"@tryghost/members-api@2.2.3":
version "2.2.3"
resolved "https://registry.yarnpkg.com/@tryghost/members-api/-/members-api-2.2.3.tgz#9cc1734537ba327e1c94514efc4166e46d5bc4cc"
integrity sha512-cCKSVBy8L1nO0r8fGIKbBYDAM7C+XuVDfDb+pBZqyGftZXtI8980EOnOckkM9k/FJYnOMss/U7fmdNAp+uPZxQ==
dependencies:
"@tryghost/debug" "^0.1.2"
"@tryghost/errors" "^0.2.9"