enrol mpcheckoutpro: Difference between revisions
From MoodleDocs
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
== '''Mercadopago Payment Gateway Enrolment Plugin''' == | == '''Mercadopago Payment Gateway Enrolment Plugin Colombia''' == | ||
This plugin allows integration with Mercadopago, a popular payment gateway, to manage paid course enrolments within Moodle. It provides a seamless enrolment experience for users while offering administrators a flexible and easy-to-configure payment solution. | This plugin allows integration with Mercadopago, a popular payment gateway, to manage paid course enrolments within Moodle. It provides a seamless enrolment experience for users while offering administrators a flexible and easy-to-configure payment solution. | ||
'''Key Features:''' | '''Key Features:''' | ||
* | * '''Seamless Integration:''' Connects Moodle with Mercadopago for automated payment processing and enrolment. | ||
* '''Flexible Configuration:''' Supports both development and production environments with customizable settings. | * '''Flexible Configuration:''' Supports both development and production environments with customizable settings. | ||
* '''Secure Transactions:''' Leverages Mercadopago's secure platform for handling financial transactions. | * '''Secure Transactions:''' Leverages Mercadopago's secure platform for handling financial transactions. | ||
| Line 20: | Line 18: | ||
* Your moodle have run in linux server | * Your moodle have run in linux server | ||
* You need a mercado pago account in colombian country | |||
* You need install sdk for mercadopago checkout pro | * You need install sdk for mercadopago checkout pro | ||
* You need install composer for php | * You need install composer for php | ||
| Line 26: | Line 25: | ||
# Download the composer in your linux operative system ('''you never install components in public directory''', by default the public access for externals /var/www/html) | # Download the composer in your linux operative system ('''you never install components in public directory''', by default the public access for externals /var/www/html) | ||
## Go to www directory: '''cd /var/www/ | ## Go to www directory: and rull all command in the steps ('''important''')<syntaxhighlight lang="bash"> | ||
cd /var/www/ | |||
## Go to composer install: https://getcomposer.org/download/ and | </syntaxhighlight> | ||
## Go to install '''checkout pro''': https://www.mercadopago.com.co/developers/es/docs/checkout-pro/integrate-preferences ('''Install sdk of mercado pago''') for example you have search this | ## Go to composer install: https://getcomposer.org/download/ and install this will be depend of your installation | ||
## Go to install '''checkout pro''': https://www.mercadopago.com.co/developers/es/docs/checkout-pro/integrate-preferences ('''Install sdk of mercado pago''') for example you have search this section:<syntaxhighlight lang="bash"> | |||
php composer.phar require "mercadopago/dx-php" | php composer.phar require "mercadopago/dx-php" | ||
</syntaxhighlight> | </syntaxhighlight> | ||
# | #You have the files in to directory:[[File:files.png|center|thumb|560x560px]] | ||
==== Note: If a error in some steps you will be fixed before continue ==== | |||
---- | |||
=== Moodle Plugin Page === | === Moodle Plugin Page === | ||
Revision as of 17:07, 26 January 2025
Mercadopago Payment Gateway Enrolment Plugin Colombia
This plugin allows integration with Mercadopago, a popular payment gateway, to manage paid course enrolments within Moodle. It provides a seamless enrolment experience for users while offering administrators a flexible and easy-to-configure payment solution.
Key Features:
- Seamless Integration: Connects Moodle with Mercadopago for automated payment processing and enrolment.
- Flexible Configuration: Supports both development and production environments with customizable settings.
- Secure Transactions: Leverages Mercadopago's secure platform for handling financial transactions.
- Easy Setup: Simple installation and configuration process through Moodle's administrative interface.
- Customizable Enrolment Options: Allows setting custom instance names, enrolment costs, and enrolment periods.
Supported Moodle Versions: 4.0, 4.1, 4.2, 4.3, 4.4, 4.5
Installation Guide:
Requirements:
- Your moodle have run in linux server
- You need a mercado pago account in colombian country
- You need install sdk for mercadopago checkout pro
- You need install composer for php
Steps:
- Download the composer in your linux operative system (you never install components in public directory, by default the public access for externals /var/www/html)
- Go to www directory: and rull all command in the steps (important)
cd /var/www/
- Go to composer install: https://getcomposer.org/download/ and install this will be depend of your installation
- Go to install checkout pro: https://www.mercadopago.com.co/developers/es/docs/checkout-pro/integrate-preferences (Install sdk of mercado pago) for example you have search this section:
php composer.phar require "mercadopago/dx-php"
- Go to www directory: and rull all command in the steps (important)
- You have the files in to directory:

Note: If a error in some steps you will be fixed before continue
Moodle Plugin Page
- Upload the Plugin: In your Moodle site as an administrator, navigate to Site administration > Notifications. Upload the plugin ZIP file. Choose the plugin type "Enrolment method (enrol)". Accept the acknowledgement and install.
- Enable the Plugin: Go to Site administration > Plugins > Enrolments > Manage enrol plugins and enable "Mercadopago".
- Configure Settings: Click the settings icon for the Mercadopago plugin. Enter your Mercadopago merchant credentials and configure any desired options. Save changes.
- Add to Course: Navigate to the desired course, then go to Course administration > Users > Enrolment methods. Choose "Mercadopago" from the dropdown menu.
- Configure Enrolment Instance: Set a custom instance name, enrolment cost, and any other relevant options, such as the enrolment duration. Save changes.
User Experience:
Registered users can now view and access the course after successfully completing payment through the Mercadopago gateway.
The users will view your status in the platform
Error with payment:
When payment is failed, the user receive message for contact support or wait to the payment is accredited
Payment pending:
When payment wait to check with mercado pago account.

Payment success:
When payment is accredited
