Ghost icon indicating copy to clipboard operation
Ghost copied to clipboard

Disconnection of Stripe leaves tiers in limbo.

Open cathysarisky opened this issue 2 years ago • 2 comments

Issue Summary

If Stripe is disconnected, tiers are left in an active status, but cannot be archived from the admin panel. They can show up in a #get request on some theme pages, and also on Portal's /#/portal/plans route.

Expected behavior: Tiers should not be returned by #get (or a filter should exist that prevents this) if Stripe is disconnected. Probable workaround: Add logic check for whether stripe is connected before #get in theme code. (But Portal would still need to be patched.)

Steps to Reproduce

  1. Connect to stripe (test mode OK)
  2. Create some tiers.
  3. Disconnect from Stripe
  4. Retrieve tiers with {{#get tiers filter="active:true+visibility:public"}} Observe that tiers are returned, which messes up any theme using a custom sign-up page.
  5. Try to delete or deactivate these tiers in the Admin portal to prevent the behavior in 4. Observe that these tiers do not display in the admin portal.

Ghost Version

Ghost Pro

Node.js Version

Ghost Pro

How did you install Ghost?

Ghost Pro

Database type

MySQL 8

Browser & OS version

No response

Relevant log / error output

No response

Code of Conduct

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

cathysarisky avatar Dec 08 '23 16:12 cathysarisky

Today's workaround (after I spent 15 minutes scratching my head about the behavior, not realizing the client's site had ever been connected to Stripe): Connect Stripe (to a test account, in test mode), archive the problem tier, disconnect Stripe.

cathysarisky avatar Apr 30 '24 14:04 cathysarisky