mirror of
https://github.com/gristlabs/grist-core.git
synced 2024-10-27 20:44:07 +00:00
(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:
parent
42060df29a
commit
a43a5a25a6
@ -19,7 +19,6 @@ CheckBox.prototype.buildConfigDom = function() {
|
||||
|
||||
CheckBox.prototype.buildDom = function(row) {
|
||||
var value = row[this.field.colId()];
|
||||
console.log(this);
|
||||
return dom('div.field_clip',
|
||||
dom('div.widget_checkbox',
|
||||
dom.on('click', () => {
|
||||
|
@ -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.
|
||||
this.app.get('/billing/create-team', ...middleware, expressWrap(async (req, resp, next) => {
|
||||
const planType = optStringParam(req.query.planType) || '';
|
||||
|
Loading…
Reference in New Issue
Block a user