This document outlines best practices when developing this server SDK.
There is a supplied Dockerfile for creating an environment to run this server SDK.
- Verify Docker is installed and running.
make
to start the docker container.rake test:unit
Inside the docker container to verify the unit tests pass- Write code!
- Avoid creating objects to reference values.
- JSON is a first class citizen in this server SDK so providing objects in place of that JSON can complicate the merchant code.
- Using the raw JSON also protects backward compability changes and referencing and object limits backward compatibility for older versions.
- Documentation should exist for these values in the Developer Docs Reference
- The Developer Docs Reference is the source of truth for the current behavior of the server SDKs. Brief or minimal documentation should be provided in the library, but details should be provided in the deverloper doc reference. Open source contributors can leave code comments or a detailed pull request description for the Braintree team to provide in the developer docs.
rake test
needs to pass- Add a changelog entry under the
unreleased
header - Open a PR