From abadf8efe3abce988e6d4d69b155f179e3c8ca22 Mon Sep 17 00:00:00 2001 From: Eric Date: Tue, 2 Aug 2022 13:57:48 -0500 Subject: [PATCH] Website: pricing update (#7018) * pricing update * change env variable name --- website/api/controllers/customers/create-quote.js | 2 +- .../controllers/customers/save-billing-info-and-subscribe.js | 2 +- website/views/pages/customers/new-license.ejs | 4 ++-- website/views/pages/pricing.ejs | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/website/api/controllers/customers/create-quote.js b/website/api/controllers/customers/create-quote.js index cb814f051d..789992a7f2 100644 --- a/website/api/controllers/customers/create-quote.js +++ b/website/api/controllers/customers/create-quote.js @@ -25,7 +25,7 @@ module.exports = { fn: async function ({ numberOfHosts }) { // Determine the price, 1 dollar * host * month (Billed anually) - let price = 1.00 * numberOfHosts * 12; + let price = 2.00 * numberOfHosts * 12; let quote = await Quote.create({ numberOfHosts: numberOfHosts, diff --git a/website/api/controllers/customers/save-billing-info-and-subscribe.js b/website/api/controllers/customers/save-billing-info-and-subscribe.js index 8ae3fe51ea..888111c25e 100644 --- a/website/api/controllers/customers/save-billing-info-and-subscribe.js +++ b/website/api/controllers/customers/save-billing-info-and-subscribe.js @@ -89,7 +89,7 @@ module.exports = { customer: this.req.me.stripeCustomerId, items: [ { - price: sails.config.custom.stripeSubscriptionProduct, + price: sails.config.custom.stripeSubscriptionPriceId, quantity: quoteRecord.numberOfHosts, }, ], diff --git a/website/views/pages/customers/new-license.ejs b/website/views/pages/customers/new-license.ejs index f64e5dd586..6b5e6db4a4 100644 --- a/website/views/pages/customers/new-license.ejs +++ b/website/views/pages/customers/new-license.ejs @@ -18,7 +18,7 @@

- $1.00/month/device
(Billed annually at $12/device) + $2.00/month/device
(Billed annually at $24/device)

@@ -29,7 +29,7 @@ Order total
- ${{(!showQuotedPrice || _.isNaN(formData.numberOfHosts * 12)) ? quotedPrice : formData.numberOfHosts * 12}}.00 /year + ${{(!showQuotedPrice || _.isNaN(formData.numberOfHosts * 24)) ? quotedPrice : formData.numberOfHosts * 24}}.00 /year
diff --git a/website/views/pages/pricing.ejs b/website/views/pages/pricing.ejs index f98e5c58ee..679785618c 100644 --- a/website/views/pages/pricing.ejs +++ b/website/views/pages/pricing.ejs @@ -78,10 +78,10 @@

Premium

-

$1

+

$2

/host/month

- (USD, billed annually at $12) + (USD, billed annually at $24)