Skip to main content

Setup Local Development Environment

To set up your local development environment using the Payment Extension Boilerplate, follow these steps:

  1. After registering your extension and cloning the Fynd Boilerplate repository, set up your .env file by adding the EXTENSION_API_KEY and EXTENSION_API_SECRET values obtained after registering the payment extension.
  2. 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 under EXTENSION_BASE_URL.
  3. Install the required dependencies by running npm install
  4. Build the Project and generate static HTML files by running npm run build.
  5. Start the development server by running npm run dev.
  6. Ensure the FDK tunnel is running and correctly bound to the specified port (8080).

Was this section helpful?