PHPackages                             midnightgb/mercadopago - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Payment Processing](/categories/payments)
4. /
5. midnightgb/mercadopago

ActiveLibrary[Payment Processing](/categories/payments)

midnightgb/mercadopago
======================

Mercado Pago Payment Gateway for Bagisto

1.4.0(8mo ago)258—0%MITPHP

Since Mar 15Pushed 8mo ago1 watchersCompare

[ Source](https://github.com/Midnightgb/mercadopago-payment-gateaway)[ Packagist](https://packagist.org/packages/midnightgb/mercadopago)[ RSS](/packages/midnightgb-mercadopago/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (6)Dependencies (1)Versions (9)Used By (0)

Mercado Pago Payment Gateway for Bagisto
========================================

[](#mercado-pago-payment-gateway-for-bagisto)

A payment gateway integration for Mercado Pago on the Bagisto e-commerce platform.

Features
--------

[](#features)

- Seamless integration with Bagisto checkout process
- Support for Mercado Pago payment methods
- Configurable from Bagisto admin panel
- Sandbox mode support for testing

Requirements
------------

[](#requirements)

- Bagisto ^2.0
- PHP ^8.1
- Composer
- Mercado Pago account

Installation
------------

[](#installation)

### Option 1: Installation via Composer (Recommended)

[](#option-1-installation-via-composer-recommended)

```
composer require midnightgb/mercadopago
```

### Option 2: Manual Installation

[](#option-2-manual-installation)

1. Download this repository
2. Extract the file and copy the `mercadopago-payment-gateaway` folder to the `packages/` directory of your Bagisto installation
3. Add the following line to the `composer.json` file in the `autoload.psr-4` section: ```
    "Midnight\\MercadoPago\\": "packages/mercadopago-payment-gateaway/src/"
    ```
4. Add the following service provider to the `config/app.php` file: ```
    Midnight\MercadoPago\Providers\MercadoPagoServiceProvider::class
    ```
5. Run: ```
    composer dump-autoload
    ```

Configuration
-------------

[](#configuration)

1. Get your Mercado Pago credentials:

    - Log in to your [Mercado Pago Developers](https://developers.mercadopago.com/) account
    - Go to the Credentials section
    - Copy your Access Token and Public Key
2. Configure the credentials in your `.env` file:

    ```
    MERCADOPAGO_ACCESS_TOKEN=YOUR_ACCESS_TOKEN
    MERCADOPAGO_PUBLIC_KEY=YOUR_PUBLIC_KEY

    ```
3. Configure the payment method in the Bagisto admin panel:

    - Go to **Settings &gt; Sales &gt; Payment Methods**
    - Find "Mercado Pago" in the list
    - Enable the payment method
    - Configure the title and description
    - Enable Sandbox mode for testing if needed
    - Save the configuration

Usage
-----

[](#usage)

Once configured, Mercado Pago will appear as a payment option during the checkout process in your Bagisto store.

Testing
-------

[](#testing)

For testing in Sandbox mode, you can use the [test cards provided by Mercado Pago](https://www.mercadopago.com.co/developers).

Troubleshooting
---------------

[](#troubleshooting)

If you encounter any issues, check the Laravel logs in `storage/logs/laravel.log`.

Contributing
------------

[](#contributing)

Contributions are welcome. Please submit a Pull Request or open an Issue to discuss proposed changes.

License
-------

[](#license)

This package is licensed under the [MIT License](LICENSE).

---

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance60

Regular maintenance activity

Popularity12

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 97% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~23 days

Total

8

Last Release

256d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/80e967aa9bb69406209df3ca887994a4a8a2f3ebe7169c1fcb002ac8529c25f9?d=identicon)[Midnightgb](/maintainers/Midnightgb)

---

Top Contributors

[![Midnightgb](https://avatars.githubusercontent.com/u/103533210?v=4)](https://github.com/Midnightgb "Midnightgb (32 commits)")[![jalejandrov93](https://avatars.githubusercontent.com/u/50245234?v=4)](https://github.com/jalejandrov93 "jalejandrov93 (1 commits)")

---

Tags

bagistobagisto-packagebagisto-paymentecommercemercadopagoopensourcepayment

### Embed Badge

![Health badge](/badges/midnightgb-mercadopago/health.svg)

```
[![Health](https://phpackages.com/badges/midnightgb-mercadopago/health.svg)](https://phpackages.com/packages/midnightgb-mercadopago)
```

###  Alternatives

[2checkout/2checkout-php

2Checkout PHP Library

83740.3k2](/packages/2checkout-2checkout-php)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
