Setup Local Development Environment
To set up your local development environment using the Payment Extension Boilerplate, follow these steps:
- After registering your extension and cloning the Fynd Boilerplate repository, set up your
.env
file by adding theEXTENSION_API_KEY
andEXTENSION_API_SECRET
values obtained after registering the payment extension. - Once installed, use the command
fdk tunnel --port 8080
to start a tunnel through Cloud flare. This will provide a public URL that can be used to access your local environment. Add this URL to your.env
file underEXTENSION_BASE_URL
. - Install the required dependencies by running
npm install
- Build the Project and generate static HTML files by running
npm run build
. - Start the development server by running
npm run dev
. - Ensure the FDK tunnel is running and correctly bound to the specified port (
8080
).