The PagSeguro enrolment plugin allows you to set up paid courses.
The plugin has to be enabled by the site administrator and then added to the course by an administrator or manager.
You can then set an individual price for your course if needed.
This is an updated version based on https://moodle.org/plugins/view.php?plugin=enrol_pagseguro
You must put this code in the directory moodle/enrol/pagseguro You can use git clone for this or download the latest version from github at https://github.com/danielneis/moodle-enrol_pagseguro/archive/update-3.0.zip
- First, enable the plugin at Administration block > Site Administration > Plugins > Enrolments > Manage enrol plugins
- Then, go to its settings
- You must create a token at the PagSeguro website and use it to configure your Moodle plugin.
- Also, at the PagSeguro website, you should set the field "Código de transação para página de redirecionamento" with "transaction_id" (without quotes).
- Now you can go to any course and add the PagSeguro enrol method. There you will set the cost, currency and the email for the PagSeguro account that will be credited.