PHPackages                             missael-anda/laravel-mercado-pago - 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. missael-anda/laravel-mercado-pago

ActiveLibrary

missael-anda/laravel-mercado-pago
=================================

MercadoPago API for Laravel

v0.8.10-alpha(1y ago)260MITPHP

Since Aug 8Pushed 1y ago1 watchersCompare

[ Source](https://github.com/MissaelAnda/laravel-mercado-pago)[ Packagist](https://packagist.org/packages/missael-anda/laravel-mercado-pago)[ RSS](/packages/missael-anda-laravel-mercado-pago/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (2)Versions (11)Used By (0)

Mercado Pago Laravel API
========================

[](#mercado-pago-laravel-api)

The MercadoPago API with all the commodities for Laravel.

- [Installation](#installation)
- [Configuration](#configuration)
- [Usage](#usage)
- [OAuth](#oauth)
- [Webhooks](#webhooks)
- [License](#license)

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

[](#installation)

```
composer require missael-anda/laravel-mercado-pago
```

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

[](#configuration)

If you want to simply use a single default tenant you will need to define the `MERCADO_PAGO_USER_ID`, `MERCADO_PAGO_ACCESS_TOKEN` and `MERCADO_PAGO_PUBLIC_KEY`.

If you want to manage other users account with a MercadoPago application you will need to provide the `MERCADO_PAGO_APP_ID` and `MERCADO_PAGO_APP_SECRET`.

You can publish the full [configuration file](config/mercado-pago.php) with the following command:

```
php artisan vendor:publish --provider="MissaelAnda\MercadoPago\MercadoPagoServiceProvider" --tag=config
```

Usage
-----

[](#usage)

You can get the default tenant via the `MercadoPago::default()` method or directly to all the features, if you want to provide multiple tenants you will need to implement the [`MercadoPagoTenant`](src/Contracts/MercadoPagoTenant.php) interface and pass it to the `MercadoPago::tenant($tenant)` function or pass it to the service.

### Services

[](#services)

- `oauth()` (Does not require a tenant)
- `stores()`
- `pos()`
- `points()`
- `payments()`
- `me()`

OAuth
-----

[](#oauth)

If you wish to manage multiple tenants you have to implement the [authorization flow](https://www.mercadopago.com.mx/developers/es/docs/subscriptions/additional-content/security/oauth/creation) you will need to provide a oauth redirect ult in the configuration, you can also turn on the PKCE.

You can create the authorization link for the client with `MercadoPago::oauth()->generateOAuthLink()`. When successfully authorized the user will be redirected to the configured url, this will trigger the `OAuthCallbackReceived` event which contains the `code` and the `state` which you can use to generate the access token with the `MercadoPago::oauth()->createAccessToken()` function. You can refresh the token with the `refresh_token` and the `MercadoPago::oauth()->refreshAccessToken()`.

Webhooks
--------

[](#webhooks)

[Webhooks](https://www.mercadopago.com.mx/developers/en/docs/your-integrations/notifications/webhooks) are automatically handled and verified, these will fire the `WebhookReceived` event and the `PointIntegrationEvent` or the `WebhookEvent` depending on the event itself.

If you want to disable the webhook or the signature verification you can do so in the configuration file.

Missing features
----------------

[](#missing-features)

- CheckoutPro
- CheckoutApi
- CheckoutBricks
- PaymentLinks
- Subscriptions
- WalletConnect
- SplitPayments

License
-------

[](#license)

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

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance38

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity32

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% 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 ~12 days

Recently: every ~25 days

Total

10

Last Release

531d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b1ecac00c05e3610cf52b613910901a672d736b6d78aca7bba7e1468ba73733f?d=identicon)[Missael Anda](/maintainers/Missael%20Anda)

---

Top Contributors

[![MissaelAnda](https://avatars.githubusercontent.com/u/31199350?v=4)](https://github.com/MissaelAnda "MissaelAnda (20 commits)")

### Embed Badge

![Health badge](/badges/missael-anda-laravel-mercado-pago/health.svg)

```
[![Health](https://phpackages.com/badges/missael-anda-laravel-mercado-pago/health.svg)](https://phpackages.com/packages/missael-anda-laravel-mercado-pago)
```

###  Alternatives

[fumeapp/modeltyper

Generate TypeScript interfaces from Laravel Models

196277.9k](/packages/fumeapp-modeltyper)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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