Boilerplate Overview
A Boilerplate is a pre-written codebase that speeds development by providing a foundational template for building extensions. Fynd provides a boilerplate that simplifies the development process. This template includes pre-implemented OAuth functionality, necessary API endpoints, and a frontend interface where sellers can enter PG credentials. It is an enhanced version of the General Extension boilerplate with additional configuration to support payment-specific features. Developers should first familiarize themselves with the General Extension boilerplate before working on the Payments boilerplate.
Prerequisite
Download the Payments Boilerplate code from Here.
├── .github
├── .husky
├── app
│ ├── __tests__
│ │ └── aggregator.spec.js
│ │ ├── creds.spec.js
│ │ ├── encrypt.spec.js
│ │ ├── processor.spec.js
│ │ └── signature.spec.js
│ │
│ ├── common
│ │ ├── mongo.init.js
│ │ ├── newrelic.init.js
│ │ └── sentry.init.js
│ │
│ ├── controllers
│ │ ├── credsController.js //Credentials and StatusMapper API controllers
│ │ └── orderController.js //order and payments related API controllers
│ │
│ ├── fdk
│ │ ├── index.js
│ │ └── mongoStorage.js
│ │
│ ├── middleware
│ │ ├── errorHandler.js //error handler middleware that take care to print error.