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
.envfile by adding theEXTENSION_API_KEYandEXTENSION_API_SECRETvalues obtained after registering the payment extension. - Once installed, use the command
fdk tunnel --port 8080to 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.envfile 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).