TryGhost/Ghost

Import by tier can create lots of prices in Stripe if prices don't match

Closed

#22,115 opened on Feb 5, 2025

 (2 comments) (0 reactions) (0 assignees)JavaScript (11,865 forks)batch import
bugcommunityhelp wanted

Repository metrics

Stars
 (54,676 stars)
PR merge metrics
 (Avg merge 19d 11h) (658 merged PRs in 30d)

Description

Issue Summary

Situation: Needed to import a csv with members, with stripe customer IDs. I had the tier imports on. (Yep, it's beta code, I'm not complaining, just reporting.) Customers who had pricing in Stripe that matched the Ghost tier imported correctly. Customers who had pricing in Stripe that did not match the Ghost tier resulted in the creation of a new price in Stripe, followed by refusal by Ghost to import them, with the error message:

The subscription is   managed by the subscription schedule `sub_sched_1QoeeZLXXXXXXX`,   and updating any cancelation behavior directly is not allowed. Please update   the schedule instead.

I ended up with one new price in Stripe for every subscriber with a non-standard price.

Importing without matching tiers worked fine, as did importing the customers who had the "Ghost standard" price.

Steps to Reproduce

see above. It'd be OK to fail to import, but creating a new price for each failure is not good. It'd be nice if they /did/ import.

Ghost Version

5.109

Node.js Version

18

How did you install Ghost?

bitnami

Database type

MySQL 8

Browser & OS version

No response

Relevant log / error output

see above plaese.

Code of Conduct

  • I agree to be friendly and polite to people in this repository

Contributor guide