Ghost/ghost/stripe/lib
Patrick McKenzie 559ca9d866
🐛 Stopped creating redundant Stripe Customers for Members
fixes https://github.com/TryGhost/Ghost/issues/16057

Briefly, Ghost created two Customer objects via the Stripe API when an
existing subscriber would upgrade to a paid subscription, one in an API
call to create the Customer and then a second as a side effect of an API
call to create a Checkout session for the user. The fix is passing the
reference to the Customer object to the API call to create the Checkout
session; Stripe will no longer redundantly create a Customer object in
this case.

This largely impacts the owner's experience of the Stripe Dashboard; it
will correct their new Customer count (going forward) and make searches
for users by name or email address return one responsive object which
has the actual subscription in it versus returning two and forcing them
to look in each to e.g. refund a transaction or similar.
2023-01-06 11:44:56 +07:00
..
Migrations.js Fixed minor jsdoc issues in Stripe package 2022-10-10 12:15:48 +07:00
StripeAPI.js 🐛 Stopped creating redundant Stripe Customers for Members 2023-01-06 11:44:56 +07:00
StripeService.js Fixed failing migration requests when client runs in a test env 2022-04-05 21:36:22 +12:00
WebhookController.js Fixed minor jsdoc issues in Stripe package 2022-10-10 12:15:48 +07:00
WebhookManager.js Fixed optional syntax style for jsdoc 2022-10-16 14:48:05 +07:00