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

Free Trials: Domain credit shouldn't be usable during the trial period. #1522

Closed
2 tasks done
matthusby opened this issue Dec 11, 2015 · 5 comments
Closed
2 tasks done
Assignees

Comments

@matthusby
Copy link
Contributor

D650-code has a patch that will disable the domain credit during the trial period.

Part of #1484.

Also fixes #1377.

cc @fabianapsimoes @spncrb @drewblaisdell

  • Product Review
  • Code Review
@matthusby matthusby added [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. Free Trials labels Dec 11, 2015
@matthusby matthusby added this to the No-cc Free Trials: v1 milestone Dec 11, 2015
@ghost
Copy link

ghost commented Dec 12, 2015

This patch breaks the /plans page (missing trial buttons):
screen shot 2015-12-11 at 7 29 53 pm

There are also internal server errors in console:
screen shot 2015-12-11 at 7 31 17 pm

Was able to verify that it was your patch by removing the patch from the sandbox (buttons re-appear) and re-applying (buttons disappear, errors return)

@ghost ghost added [Status] Needs Author Reply and removed [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. labels Dec 12, 2015
@ghost
Copy link

ghost commented Dec 12, 2015

Just managed to add a trial without the patch and re-add the patch.

The functionality intended does indeed work - no domain credits (charged for domains).

That said, it does break /plans, per above.

@matthusby
Copy link
Contributor Author

I just updated the diff, there was a fatal error when checking a site that didn't have a plan.

@fabianapsimoes fabianapsimoes added [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. and removed [Status] Needs Author Reply labels Dec 17, 2015
@fabianapsimoes
Copy link
Contributor

Looks good! Here's what I tested:

  • we do not display "free with plan" in /domains/add to trials.
  • we charge trials correctly for domains.
  • after a trial is purchased, we do display "free with plan" in /domains/add.
  • we do not charge users who purchased a trial for the bundled domain.
  • buttons in /plans are displayed correctly when user has no plan, user has trial, user has plan.

Product 👍

@scruffian
Copy link
Member

This was deployed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants