Thank you for considering contributing to the PAYONE Commerce Platform Client JavaScript SDK! We appreciate your efforts to help improve this project. Below are guidelines for contributing.
We welcome pull requests! Please follow these steps to submit one:
-
Fork the repository and create your branch from
master
. -
Install any dependencies and ensure the project builds and passes tests.
npm install
-
Develop your changes in Typescript.
-
Test your changes thoroughly.
npm run test
-
Write clear, concise, and self-explanatory commit messages.
-
Open a pull request with a clear title and description of what your change does.
-
Ensure your pull request follows the style guides.
If you encounter any bugs, please report them using one of the following methods:
- Issue Tracker: Submit an issue through our issues tracker.
- Security Issues: For security-related issues, please contact our IT support via email at [email protected] with a clear subject line indicating that it is a security issue. This ensures that the issue will be visible to and handled by the PAYONE tech support team.
We use Conventional Commits for our commit messages. See the whole specification here.
- Follow the TypeScript Handbook for best practices.
- Ensure type definitions are clear and comprehensive.
- We are using
strict
mode intsconfig.json
to enforce type safety:{ "compilerOptions": { "strict": true, ... } }
- Follow the project's existing code style.
- Use tools like ESLint and Prettier to maintain code quality and consistency.
- Ensure your editor/IDE is configured to follow the project's coding standards.
- Write unit tests using Vitest.
- Ensure new features and bug fixes are covered by tests.
- Run the test suite to confirm all tests pass before submitting your pull request.
Thank you for your contributions!