Problem/Motivation

When the subscription plan is being synchronized, all plans are obtained even those which are archived in Stripe. As they are archived they should not be retrieved.

Proposed resolution

- Add a product to Stripe and then archive it.
- In Drupal, synchronize Stripe plans

Remaining tasks

Set the parameter active as true when obtaining the plans. Documentation

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

omarlopesino created an issue. See original summary.

omarlopesino’s picture

Status: Active » Needs review

Please check the MR that only obtains the active plans, thanks!

omarlopesino’s picture

Version: 3.0.0 » 3.x-dev
somit4756’s picture

Used this patch but still archived plans are showing
Thanks.

omarlopesino’s picture

To make the plan disappear it is needed to archive the price. Can you try to archive the price and then check if it still appears? Thanks in advance.

omarlopesino’s picture

Status: Needs review » Needs work

Moving to needs review so that we solve the problem reported at #5 . After thinking it for the second time I think is pretty logic that if the product is archived, then the related plan should not appear.