.js files
Notable configuration variables
Extra
This configuration are not required for Vastly to start.
Server PORT
Defines the express server http port.
Vastly by default runs on port 5501
, to update this navigate to server.js
.
The port can be updated in the following line:
port = process.env.PORT || 5501;
example
To run on port 8000
port = process.env.PORT || 8000;
Payment Webhooks
Important
Ensure to act accordingly
Vastly by default supports online payment webhooks, if your project does not require online payments, then ensure you deactivate this feature by commenting out the webhook paths
If you utilize online payments then update the webhook paths to be custom and private to you.
Payment webhooks are configured in app.js
//================PAYMENT WEB-HOOK====================
app.post(
"/<RANDOM_PATH>/stripe/webhook",
bodyParser.raw({ type: "application/json" }),
paymentController.stripeWebHookCheckout
);