0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-18 02:21:47 -05:00

Revert "Added precaution to avoid creating multiple Complimentary plans"

This reverts commit 5f0d2168f3.

After discussing the best approach to multipe currency problem would be
to allow creating multiple "Complimentary" plans. All security related
checks should stay strictly based on name and would not cause issues.
This commit is contained in:
Nazar Gargol 2020-02-27 16:53:05 +08:00
parent fbe153cc97
commit 9a783f9f0c

View file

@ -36,11 +36,6 @@ module.exports = class StripePaymentProcessor {
this._plans = [];
for (const planSpec of config.plans) {
// NOTE: we have only one "Complimentary" plan throughout the system
if (planSpec.name === 'Complimentary' && planSpec.currency !== 'usd') {
return;
}
const plan = await api.plans.ensure(this._stripe, planSpec, this._product);
this._plans.push(plan);
}