Skip to content

harregoces/moodle-enrol-redsys

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Moodle Enrollment Redsys

Moodle Plugin PHP License Spain

A Moodle enrollment plugin that enables course payments through Redsys payment gateway, the leading payment processor in Spain.

Features

  • Seamless integration with Redsys payment gateway
  • Support for Euro (EUR) currency
  • Automatic enrollment upon successful payment
  • Email notifications for students, teachers, and admins
  • Test mode for development and staging environments
  • Configurable enrollment duration
  • Role assignment on enrollment
  • Secure SHA-256 signature verification

About Redsys

Redsys is the leading payment gateway service in Spain, processing payments for major Spanish banks and financial institutions.

Screenshots

Plugin Settings

Settings Screenshot

Course Enrollment Configuration

Course Settings

Payment Page

Payment Page

Requirements

  • Moodle 3.5 or higher
  • PHP 7.4 or higher
  • Redsys merchant account with API credentials

Installation

Via Git (Recommended)

cd /path/to/moodle/enrol
git clone https://github.com/harregoces/moodle-enrol-redsys.git redsys

Manual Installation

  1. Download the latest release
  2. Extract the contents
  3. Copy the redsys folder to /path/to/moodle/enrol/
  4. Visit Site Administration > Notifications to complete the installation

Configuration

  1. Go to Site Administration > Plugins > Enrolments > Manage enrol plugins
  2. Enable "Redsys" enrollment
  3. Click on "Settings" to configure the plugin
  4. Enter your Redsys credentials:
    • Merchant Code (FUC)
    • Terminal Number
    • Secret Key (SHA-256)
  5. Configure notification settings as needed

Test Mode

For testing in sandbox mode:

  1. Use the Redsys test environment credentials
  2. Enable test mode in the plugin settings
  3. Use test card numbers provided by Redsys

Usage

  1. Navigate to the course you want to enable payments for
  2. Go to Course Administration > Users > Enrolment methods
  3. Add "Redsys" from the dropdown
  4. Configure the enrollment cost
  5. Save changes

Students will see the payment option when they try to enroll in the course.

Documentation

Technical Details

This plugin uses the official Redsys API PHP Library v1.0 with SHA-256 signature verification for secure transactions.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

Author

Hernan Arregoces - Software Engineer specialized in Moodle Development

License

This project is licensed under the GPL-3.0 License - see the LICENSE file for details.

Support

If you find this plugin useful, consider giving it a star on GitHub!


Made with love for the Moodle community in Spain

About

Redsys is a payment gateway service from Spain.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

 
 
 

Contributors

Languages