(core) Removing old billing landing page.

Summary: Old landing page /docs/billing/signup is not used anymore.

Test Plan: Updated tests

Reviewers: georgegevoian

Reviewed By: georgegevoian

Differential Revision: https://phab.getgrist.com/D3585
This commit is contained in:
Jarosław Sadziński 2022-08-21 22:58:58 +02:00
parent 42060df29a
commit a43a5a25a6
2 changed files with 0 additions and 19 deletions

View File

@ -19,7 +19,6 @@ CheckBox.prototype.buildConfigDom = function() {
CheckBox.prototype.buildDom = function(row) { CheckBox.prototype.buildDom = function(row) {
var value = row[this.field.colId()]; var value = row[this.field.colId()];
console.log(this);
return dom('div.field_clip', return dom('div.field_clip',
dom('div.widget_checkbox', dom('div.widget_checkbox',
dom.on('click', () => { dom.on('click', () => {

View File

@ -1184,24 +1184,6 @@ export class FlexServer implements GristServer {
} }
})); }));
/**
* Add landing page for creating pro team sites. Creates new org and redirect to Stripe Checkout Page.
* @param billingPlan Stripe plan/price id to use. Must be a standard plan that resolves to a billable product.
* @param planType Product type to use. Grist will look for a Stripe Product with a default price
* that has metadata 'gristProduct' parameter with this plan. If billingPlan is passed, this
* parameter is ignored.
*/
this.app.get('/billing/signup', ...middleware, expressWrap(async (req, resp, next) => {
const planType = optStringParam(req.query.planType) || '';
const billingPlan = optStringParam(req.query.billingPlan) || '';
if (!planType && !billingPlan) {
return this._sendAppPage(req, resp, {path: 'error.html', status: 404, config: {errPage: 'not-found'}});
}
// Redirect to GET endpoint in the billing api to create a team site.
const url = `${getPrefix(req)}/api/billing/signup?planType=${planType}&billingPlan=${billingPlan}`;
return resp.redirect(url);
}));
// New landing page for the new NEW_DEAL. // New landing page for the new NEW_DEAL.
this.app.get('/billing/create-team', ...middleware, expressWrap(async (req, resp, next) => { this.app.get('/billing/create-team', ...middleware, expressWrap(async (req, resp, next) => {
const planType = optStringParam(req.query.planType) || ''; const planType = optStringParam(req.query.planType) || '';