fleet icon indicating copy to clipboard operation
fleet copied to clipboard

Website: update billing info form for Fleet Sandbox users purchasing a license

Open eashaw opened this issue 2 years ago • 2 comments

Closes: https://github.com/fleetdm/confidential/issues/1698 Changes:

  • Added three inputs to the billing information form on /customers/new-license for organization, firstName and lastName
    • These inputs are only visible to Users who signed up on try-fleet/register (The Fleet sandbox registration page)
  • Updated save-billing-info-and-subscribe.js to accept the three optional inputs and:
    • Update the user record with those values
    • Generate a license using the organization provided
    • Send an order confirmation email using the provided first and last names
  • Updated the new-license page script to show the new inputs if the user's first and last name is set to be part of their email address
  • Updated the input labels on the new-license page to match wireframes (`font-weight: 400)

eashaw avatar Sep 13 '22 23:09 eashaw

Thanks. @eashaw. Let's go over this together tomorrow to review the UI changes because I don't think I'm set up to view the new fields locally – I get a client-side error when I hit "Continue" to the billing details.

mike-j-thomas avatar Sep 14 '22 04:09 mike-j-thomas

@mikermcneil This PR has been updated with the User model changes.

eashaw avatar Sep 23 '22 00:09 eashaw

@eashaw Is this ready to merge?

mikermcneil avatar Oct 04 '22 15:10 mikermcneil

@mikermcneil I need to add the signupReason column and migrate the existing user data. I will put the site in maintenance mode and migrate the data before I merge this Pull request this today. I'll make an announcement in Slack before it happens.

eashaw avatar Oct 04 '22 16:10 eashaw