Skip to content

Kalpa-Services/mmg-wp-plugin

Repository files navigation

MMG Checkout Payment Plugin - Developer Contribution Guide

FOSSA Status FOSSA Status

Project Overview

MMG Checkout Payment is a WordPress plugin that integrates with WooCommerce to provide a secure payment gateway for MMG Merchants. This guide is for developers who want to contribute to the project.

Development Prerequisites

  • WordPress 6.0+
  • WooCommerce 7.0+
  • PHP 7.4+
  • mbstring extension
  • Familiarity with WordPress plugin development
  • Understanding of payment gateway integrations
  • Knowledge of RSA encryption/decryption

Setting Up the Development Environment

  1. Clone the repository:
    git clone https://github.com/Kalpa-Services/mmg-wp-plugin.git
  2. Run composer install to install the dependencies.
  3. Set up a local WordPress development environment with WooCommerce installed.
  4. Symlink or copy the plugin folder to your WordPress plugins directory.
  5. Activate the plugin in WordPress admin.

Code Structure

  • includes/: Contains the core plugin files.
  • tests/: Contains unit tests for the plugin.
  • vendor/: Contains third-party libraries and dependencies.
  • js/: Contains the JavaScript files for the plugin.
  • assets/: Contains the images and other assets for the plugin.
  • main.php: The main plugin file.
  • uninstall.php: The uninstallation script for the plugin.
  • readme.txt: The readme file for the plugin used by WordPress.

Coding Standards

Testing

  • Ensure all new features or bug fixes include appropriate unit tests
  • Test the plugin with various WordPress and WooCommerce versions
  • Verify compatibility with popular WordPress themes

Submitting Changes

  1. Create a new branch for your feature or bug fix
  2. Make your changes and commit them with clear, concise commit messages
  3. Push your branch and create a pull request
  4. Ensure your PR description clearly explains the changes and their purpose

Security Considerations

Documentation

  • Update the README.md file with any new features or changes to installation/configuration steps
  • Document any new functions or classes using PHPDoc standards

Roadmap and Future Development

  • Implement processing of refunds

Getting Help

For questions or support, please open an issue on the GitHub repository or contact the maintainers directly.

License

This project is licensed under GPL v2 or later. Ensure all contributions comply with this license.

FOSSA Status