Contributing Guide

We welcome contributions to FinFusion! Please read these guidelines before submitting your changes.

Getting Started

Development Setup

# Clone the repository
git clone https://github.com/finfusion/finfusion-js.git

# Install dependencies
npm install

# Run tests
npm test

# Start development server
npm run dev

Code Style Guidelines

Coding Standards

// Good
const payment = await finfusion.payments.create({
  amount: 1000,
  currency: 'USD'
});

// Bad
const payment=await finfusion.payments.create({amount:1000,currency:'USD'});

Git Workflow

Commit Messages

// Good commit messages
feat: add new payment method support
fix: resolve webhook signature verification
docs: update API authentication guide

// Bad commit messages
update code
fix bug
changes

Pull Requests

PR Template

## Description
Describe the changes and their purpose

## Type of Change
- [ ] Bug fix
- [ ] New feature
- [ ] Documentation update
- [ ] Performance improvement

## Testing
Describe the testing performed

## Screenshots
If applicable, add screenshots
Please ensure all tests pass and code style guidelines are followed before submitting a PR.