diff --git a/app.js b/app.js index 324fc78..15fc0ec 100644 --- a/app.js +++ b/app.js @@ -39,8 +39,8 @@ if(baseConfig === false){ // Validate the payment gateway config if(ajv.validate( - require(`./config/payment/schema/${config.paymentGateway}Schema`), - require(`./config/payment/config/${config.paymentGateway}.json`)) === false + require(`./config/payment/schema/${config.paymentGateway}`), + require(`./config/payment/config/${config.paymentGateway}`)) === false ){ console.log(colors.red(`${config.paymentGateway} config is incorrect: ${ajv.errorsText()}`)); process.exit(2); diff --git a/config/payment/schema/adyenSchema.json b/config/payment/schema/adyen.json similarity index 100% rename from config/payment/schema/adyenSchema.json rename to config/payment/schema/adyen.json diff --git a/config/payment/schema/authorizenetSchema.json b/config/payment/schema/authorizenet.json similarity index 100% rename from config/payment/schema/authorizenetSchema.json rename to config/payment/schema/authorizenet.json diff --git a/config/payment/schema/blockonomicsSchema.json b/config/payment/schema/blockonomics.json similarity index 100% rename from config/payment/schema/blockonomicsSchema.json rename to config/payment/schema/blockonomics.json diff --git a/config/payment/schema/instoreSchema.json b/config/payment/schema/instore.json similarity index 100% rename from config/payment/schema/instoreSchema.json rename to config/payment/schema/instore.json diff --git a/config/payment/schema/paypalSchema.json b/config/payment/schema/paypal.json similarity index 100% rename from config/payment/schema/paypalSchema.json rename to config/payment/schema/paypal.json diff --git a/config/payment/schema/stripeSchema.json b/config/payment/schema/stripe.json similarity index 100% rename from config/payment/schema/stripeSchema.json rename to config/payment/schema/stripe.json