descriptionHTML:"Your Stripe secret API key. Signup on <a href='https://www.stripe.com' target='blank_'>Stripe.com</a>",
default:""
});
registerSetting({
type:'html',
html:'<h4>Stripe Webhook</h4><p>You need to create a webhook in stripe. Set the stripe webhook endpoint to <b>https://your-instance.tld/plugins/ncd-sell-storage/'+pjson.version+'/router/webhook</b></p>'
})
registerSetting({
name:"sell-currency",
label:"Currency",
type:"input",
private:false,
descriptionHTML:"Currency to show in price",
default:"€"
});
registerSetting({
name:"sell-description",
label:"Page description",
type:"markdown-enhanced",
private:false,
descriptionHTML:"You can explain what you want, it is showed on the page. Leave it empty to show default localized description.",
default:"You **want tu spport us** ? Or **need more space** ? Your in the right place!"
});
registerSetting({
name:"sell-thx-description",
label:"Thank you page description",
type:"markdown-enhanced",
private:false,
descriptionHTML:"If you want to show a text on the Success page after payment",
default:""
});
registerSetting({
name:"sell-cancel-description",
label:"Cancel page description",
type:"markdown-enhanced",
private:false,
descriptionHTML:"If you want to show a text on the Cancel page after payment canceled",
default:""
});
// Products settings
registerSetting({
type:'html',
html:'<br><h3>Manage Subscription</h3>'
})
// Plan 1
registerSetting({
type:'html',
html:'<br><h4>Plan 1</h4>'
})
registerSetting({
name:"plan-1-name",
label:"Plan name",
type:"input",
private:false,
descriptionHTML:"Specify the name of your plan",
default:"Starter plan",
});
registerSetting({
name:"plan-1-storage",
label:"Available storage (in GB)",
type:"input",
private:false,
descriptionHTML:"Specify the amount of available space storage",
default:150,
});
registerSetting({
name:"plan-1-price",
label:"Plan price /month",
type:"input",
private:false,
descriptionHTML:"Specify the price /month users pay for this plan",
default:5,
});
registerSetting({
name:"plan-1-key",
label:"Product ID (API ID)",
type:"input",
private:false,
descriptionHTML:"Specify the product ID that represent the product in Stripe (Ex: price_1LlHY6KHtJzgTzXzZTBRHkPs)",
default:"starter",
});
// Plan 2
registerSetting({
type:'html',
html:'<br><h4>Plan 2</h4>'
})
registerSetting({
name:"plan-2-name",
label:"Plan name",
type:"input",
private:false,
descriptionHTML:"Specify the name of your plan",
default:"Community plan",
});
registerSetting({
name:"plan-2-storage",
label:"Available storage (in GB)",
type:"input",
private:false,
descriptionHTML:"Specify the amount of available space storage",
default:300,
});
registerSetting({
name:"plan-2-price",
label:"Plan price /month",
type:"input",
private:false,
descriptionHTML:"Specify the price /month users pay for this plan",
default:10,
});
registerSetting({
name:"plan-2-key",
label:"Product ID (API ID)",
type:"input",
private:false,
descriptionHTML:"Specify the product ID that represent the product in Stripe (Ex: price_1LlHY6KHtJzgTzXzZTBRHkPs)",
default:"community",
});
// Plan 3
registerSetting({
type:'html',
html:'<br><h4>Plan 3</h4>'
})
registerSetting({
name:"plan-3-name",
label:"Plan name",
type:"input",
private:false,
descriptionHTML:"Specify the name of your plan",
default:"Profesionnal plan",
});
registerSetting({
name:"plan-3-storage",
label:"Available storage (in GB)",
type:"input",
private:false,
descriptionHTML:"Specify the amount of available space storage",
default:1000,
});
registerSetting({
name:"plan-3-price",
label:"Plan price /month",
type:"input",
private:false,
descriptionHTML:"Specify the price /month users pay for this plan",
default:15,
});
registerSetting({
name:"plan-3-key",
label:"Product ID (API ID)",
type:"input",
private:false,
descriptionHTML:"Specify the product ID that represent the product in Stripe (Ex: price_1LlHY6KHtJzgTzXzZTBRHkPs)",
default:"profesionnal",
});
// Plan 4
registerSetting({
type:'html',
html:'<br><h4>Plan 4</h4>'
})
registerSetting({
name:"plan-4-name",
label:"Plan name",
type:"input",
private:false,
descriptionHTML:"Specify the name of your plan",
default:"Profesionnal plan",
});
registerSetting({
name:"plan-4-storage",
label:"Available storage (in GB)",
type:"input",
private:false,
descriptionHTML:"Specify the amount of available space storage",
default:1000,
});
registerSetting({
name:"plan-4-price",
label:"Plan price /month",
type:"input",
private:false,
descriptionHTML:"Specify the price /month users pay for this plan",
default:15,
});
registerSetting({
name:"plan-4-key",
label:"Product ID (API ID)",
type:"input",
private:false,
descriptionHTML:"Specify the product ID that represent the product in Stripe (Ex: price_1LlHY6KHtJzgTzXzZTBRHkPs)",
default:"profesionnal",
});
// Plan 5
registerSetting({
type:'html',
html:'<br><h4>Plan 5</h4>'
})
registerSetting({
name:"plan-5-name",
label:"Plan name",
type:"input",
private:false,
descriptionHTML:"Specify the name of your plan",
default:"Profesionnal plan",
});
registerSetting({
name:"plan-5-storage",
label:"Available storage (in GB)",
type:"input",
private:false,
descriptionHTML:"Specify the amount of available space storage",
default:1000,
});
registerSetting({
name:"plan-5-price",
label:"Plan price /month",
type:"input",
private:false,
descriptionHTML:"Specify the price /month users pay for this plan",
default:15,
});
registerSetting({
name:"plan-5-key",
label:"Product ID (API ID)",
type:"input",
private:false,
descriptionHTML:"Specify the product ID that represent the product in Stripe (Ex: price_1LlHY6KHtJzgTzXzZTBRHkPs)",