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
composer install
to install all the dependencies.git checkout -b feature/my_new_feature develop
)gulp build
for js
and / or css
changes. Please check gulpfile for more tasks.git commit -am 'Added some feature'
)git push origin feature/my_new_feature
)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.
⚠️ Warning: Code from this repo is only to be used for development purposes. Always use the latest version available at http://wordpress.org/plugins/laterpay for production sites.
composer phpcs filename
or composer phpcs laterpay
to check for PHPCS errors/warnings.composer phpcompat
to check if the code is compatible for PHP 5.6 and aboveThis 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 npm install
.
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 gulp
.
For exporting the assets for a release, you can also run gulp build
.
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