This is the official Laterpay plugin for selling digital content with WordPress.
Feel free to fork the plugin and adapt it to your needs.
Please get involved in this project and contribute back changes other users would also benefit from.
The plugin is available on http://wordpress.org/plugins/laterpay
- Fork it ( https://github.com/laterpay/laterpay-wordpress-plugin/fork )
composer installto install all the dependencies.
- Create your feature branch (
git checkout -b feature/my_new_feature develop)
- Add your changes, verify coding standards and language compatibility ( Check #development-notes )
jsand / or
csschanges. Please check gulpfile for more tasks.
- Commit your changes (
git commit -am 'Added some feature')
- Push to the branch (
git push origin feature/my_new_feature)
- Create a new Pull Request to develop.
Note: Source code of the plugin resides in laterpay directory, you should copy / rsync files from this directory to your test site, in order to see the changes done.
Please run following commands from the root directory.
- Please verify your code is in compliance to the Coding Standards used in this Project.
composer phpcs filenameor
composer phpcs laterpayto check for PHPCS errors/warnings.
composer phpcompatto check if the code is compatible for PHP 5.6 and above
This project uses Gulp to build its assets.
Gulp is a node.js module. If you have node.js running, you can install gulp with
sudo npm install -g gulp.
Then go to the repository root folder and install the required gulp plugins with
Now you can run any of the tasks defined in the gulpfile from the repository root folder.
During development you can either watch the repo for changes and automatically recompile the modified assets using
For exporting the assets for a release, you can also run
An EditorConfig file is supplied to make it easier to adjust your IDE to the project standards in applying whitespace.
Contributed PHP code must comply with the WordPress coding standards. We recommend testing it with PHP_CodeSniffer + standard 'WordPress'.
All pull requests are automatically linted with JSHint and the .jshintrc included in this repository.
The Laterpay WordPress plugin uses Semantic Versioning 2.0.0
Copyright 2020 Laterpay GmbH – Released under MIT License