Thank you for considering contributing to the PAYONE Commerce Platform Client iOS 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
main
. - Develop your changes to work with both Swift and Objective-C.
- Unit test your changes thoroughly.
- Add a demo of your changes to both example projects to ensure and showcase that your changes work with UIKit/SwiftUI and Swift/Objective-C.
- 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.
- The project has a pre-commit-config which will run Swiftlint before each commit. Assure that your are using the same swiftlint version locally as stated in the pre-commit-config.yaml.
- Write unit tests.
- Ensure new features and bug fixes are covered by tests.
- Run the test suite to confirm all tests pass before submitting your pull request.
- In order to test that the SDK still works after your changes assure that you run both demo projects with Objetive-C or Swift.
- Both demo projects include certain identifiers that need to be set on your end to run them successfully. These
String
values are prefixed with 'YOUR_' and can be replaced during testing. - Make sure that you do not(!) commit those values since that would leak your secrets and they would be part of the Git history when pushed.
Thank you for your contributions!