Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plans: Prevent Multiple Plans From being added to the same site. #3722

Closed
BrookeDot opened this issue Mar 2, 2016 · 11 comments
Closed

Plans: Prevent Multiple Plans From being added to the same site. #3722

BrookeDot opened this issue Mar 2, 2016 · 11 comments
Labels
[Feature] Plans & Upgrades All of the plans on WordPress.com and flow for upgrading plans. [Status] Stale [Type] Bug

Comments

@BrookeDot
Copy link
Contributor

Currently it's possible to have both WordPress.com Premium and Business active on a site. Here's how.

Steps to reproduce

  1. Create a site and add two unique admin users
  2. Admin 1 buys WordPress.com Premium (from /plans)
  3. Admin 2 buys WordPress.com Business (from /plans)
  4. Watch in awe and grief as the site now has both Premium and Business on it.

What I expected

When trying to upgrade from Business either getting the $100 already paid off so being charged $199 or being told I couldn't do that.

What happened instead

The site now has both Premium and Business active.

@BrookeDot BrookeDot added [Feature] Plans & Upgrades All of the plans on WordPress.com and flow for upgrading plans. [Feature] Purchase Management Related to managing purchases such as subscriptions, plans, history, auto-renew, cancellation, etc. [Type] Bug labels Mar 2, 2016
@fabianapsimoes fabianapsimoes removed the [Feature] Purchase Management Related to managing purchases such as subscriptions, plans, history, auto-renew, cancellation, etc. label Mar 2, 2016
@BrookeDot BrookeDot changed the title Plans: Purchases: Prevent Multiple Plans From being added to the same site. Plans: Prevent Multiple Plans From being added to the same site. Mar 2, 2016
@retrofox retrofox self-assigned this Jul 11, 2016
@retrofox
Copy link
Contributor

we should consider what we should do if the user has a PREMIUM plan and tries to upgrade to BUSINESS.

  • implement the upgrade by $199.
  • do not allow this action.

cc @apeatling @rralian

@rralian
Copy link
Contributor

rralian commented Jul 11, 2016

@retrofox I would never disallow someone from buying something from us if we can help it. :-)

I'd be interested in feedback from the original store team about this, to see if it's come up before and if they already have opinions/guidelines for dealing with this. My gut says we should let Admin 2 make the purchase for the Business plan, and give them a discount in the amount of the premium plan ($99) and so only charge them $200.

But then it gets a little complicated with cutoff dates. If the site is only one week away from renewing, do we charge $200 now to upgrade for that one week and then charge them $300 a week later to renew? Or do we reset the renewal date to one year from this purchase?

/cc @lucasartoni Do you have an opinion here, or if you're not the right person to ask, can you point us in the right direction?

@retrofox
Copy link
Contributor

retrofox commented Jul 12, 2016

I'm going to paste the PRs that I'm creating to solve this bug.

@lucasartoni
Copy link
Contributor

@retrofox A Premium plan should always be able to be upgraded to Business.
@rralian the ideal upgrade process would be:

  • if there are more than 90 days to the expiration of premium, the upgrade happens prorata considering the difference beween premium and business and then applying it to the remaining days until expiration, than there is a natural renew.
  • if there are less than 90 days, the remaining days are given for free.

In both cases there is no change in the date of the subscription to avoid misalignements with the domain registrations or other unexpected complications.

@retrofox
Copy link
Contributor

I created a new testing site - FREE plan

image

I bought PREMIUM plan from first admin user

image

I bought BUSINESS plan from second admin user (Spanish)

image

The first user now sees the updated plan.

image

So I don't see any issue here @BandonRandon. Am I making something wrong?

@BrookeDot
Copy link
Contributor Author

BrookeDot commented Jul 13, 2016

@retrofox I just re-tested this and was able to replicate it. To clarify the problem is with the Store Admin showing both plans and the user getting charged for both. I've checked the test site in your screenshot above and see that the Store Admin is showing Premium on one user and Business on the other.

The bug likely is between the connection of Store Admin and the Calypso checkout and will require a backend change.

You can verify this by checking out your Store Admin page for either of the admin users above.

@rodrigoi
Copy link
Contributor

rodrigoi commented Aug 4, 2016

@BandonRandon would you mind retesting this issue? When introducing the Personal Plan, the backend flow for upgrades was buggy and allowed for multiple plans to be active on a site. A backend fix was deployed about a week ago that should fix this for new upgrades.

@BrookeDot
Copy link
Contributor Author

Hi @rodrigoi Sorry for the delay here.

I was just able to replicate this with Calypso Master on my site plantest.wordpress.com. This time I bought the Person Plan on the user bdukesapptest and then signed out and bought the Premium Plan on the user flagtest both users were charged the full amounts for the plans and the site is showing both plans.

I've left both plans shown in the Store Admin pages so you can see what it looks like when a site has two plans, one for each user.


I also wanted to test with new accounts/sites to see if this bug only happens with older accounts. To do this I created the users plantest2 and plantest3. I added plantest3 to the plantest2 site and was able to replicate this issue. You can review the Store Admin and see the site has two plans.

Video of latest test here: https://cloudup.com/cI-U3rOAr0T
(ping bdukes in Slack for password)

CC:// @retrofox

@kriskarkoski
Copy link
Contributor

If we support a second user upgrading from Premium to Business we need to consider what happens to the included domain. The domain should remain owned by the account that originally purchased it, but the upgraded plan would be on another account and I think there are issues with the domain and plan being split across accounts, but I would need to test that to be sure if that's still the case.

@BrookeDot
Copy link
Contributor Author

The domain consideration that @kriskarkoski brought up is a good point. After thinking about this a bit I personally would vote that we let the second user buy the upgrade but it's a "gift" to the original purchaser.

If/when we allow users to transfer upgrades between accounts they could then the plan could be moved between users. For now they could contact support and ask us to move it.

Something like:

The Premium Plan upgrade you are about to buy for $[upgrade amount] will be active on your site example.wordpress.com. However as the plan was originally bought by testuser they will retain ownership. If you'd like to transfer the plan to your account, please have testuser contact support.

@stale
Copy link

stale bot commented Jan 11, 2018

This issue has been marked as stale because it hasn't been updated in a while. It will be closed in a week. If you would like it to remain open, can you please comment below and see what you can do to get things moving with this issue? Thanks! 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Plans & Upgrades All of the plans on WordPress.com and flow for upgrading plans. [Status] Stale [Type] Bug
Projects
None yet
Development

No branches or pull requests

7 participants