PHPackages                             krugerdavid/laravel-pagopar - 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. krugerdavid/laravel-pagopar

ActiveLibrary[Payment Processing](/categories/payments)

krugerdavid/laravel-pagopar
===========================

Laravel integration for Pagopar payment gateway

1.1.0(yesterday)741[1 issues](https://github.com/krugerdavid/laravel-pagopar/issues)MITPHPPHP ^8.1CI passing

Since Jan 19Pushed 5mo agoCompare

[ Source](https://github.com/krugerdavid/laravel-pagopar)[ Packagist](https://packagist.org/packages/krugerdavid/laravel-pagopar)[ RSS](/packages/krugerdavid-laravel-pagopar/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (10)Versions (3)Used By (0)

Laravel Pagopar
===============

[](#laravel-pagopar)

[![Latest Version on Packagist](https://camo.githubusercontent.com/6b6e085a9e020f5b9440ef50aea1185f4a4357be27ab7191cc84c5c52b8c6a5f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6b727567657264617669642f6c61726176656c2d7061676f7061722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/krugerdavid/laravel-pagopar)[![GitHub Tests Action Status](https://camo.githubusercontent.com/d1506cb32ce863c03ee6ee0859a705f6317643c94bef9c4d4955a1427e92aa4b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6b727567657264617669642f6c61726176656c2d7061676f7061722f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/krugerdavid/laravel-pagopar/actions)[![Total Downloads](https://camo.githubusercontent.com/da9c0dae0cd5eef065efb27ada7382b95cef4e660eb2709c00f8a9cb0f1d3936/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6b727567657264617669642f6c61726176656c2d7061676f7061722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/krugerdavid/laravel-pagopar)[![License](https://camo.githubusercontent.com/b5dd64a5935e56bac364890ba90b173fc5dc65f5bff42eb6b829916f1cdada4a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6b727567657264617669642f6c61726176656c2d7061676f7061722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/krugerdavid/laravel-pagopar)

Laravel integration for Pagopar payment gateway.

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

[](#installation)

You can install the package via composer:

```
composer require krugerdavid/laravel-pagopar
```

The service provider will automatically register itself.

You can publish the config file with:

```
php artisan vendor:publish --tag="pagopar-config"
```

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

[](#configuration)

Add these variables to your `.env` file:

```
PAGOPAR_PUBLIC_KEY=your_public_token
PAGOPAR_PRIVATE_KEY=your_private_token
```

Usage
-----

[](#usage)

### Creating a Payment

[](#creating-a-payment)

```
use KrugerDavid\Pagopar\Facades\Pagopar;
use KrugerDavid\Pagopar\DTOs\PagoparBuyer;
use KrugerDavid\Pagopar\DTOs\PagoparItem;
use KrugerDavid\Pagopar\DTOs\PagoparPaymentRequest;

$buyer = new PagoparBuyer(
    name: 'Juan Perez',
    email: 'juan@example.com',
    document: '1234567',
    phone: '+595981123456'
);

$items = [
    new PagoparItem(
        name: 'Producto de Prueba',
        price: 10000,
        quantity: 1
    )
];

$request = new PagoparPaymentRequest(
    orderId: 'ORDER-123',
    buyer: $buyer,
    items: $items,
    maxPaymentDate: now()->addDays(2)->format('Y-m-d H:i:s'),
    description: 'Descripción del pedido'
);

$response = Pagopar::createPayment($request);

if ($response['hash']) {
    $checkoutUrl = Pagopar::getCheckoutUrl($response['hash']);
    return redirect($checkoutUrl);
}
```

### Checking Order Status

[](#checking-order-status)

```
$status = Pagopar::getOrderStatus($hash);

if (!empty($status) && $status[0]['pagado']) {
    // El pedido ha sido pagado
}
```

### Verifying Webhook Token

[](#verifying-webhook-token)

```
public function handleWebhook(Request $request)
{
    $hash = $request->input('resultado.0.hash_pedido');
    $token = $request->input('resultado.0.token');

    if (Pagopar::verifyWebhookToken($hash, $token)) {
        // Token válido, procesar el pago
    }
}
```

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

38

↑

LowBetter than 83% of packages

Maintenance81

Actively maintained with recent releases

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 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 ~163 days

Total

2

Last Release

1d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/947594?v=4)[davidkruger](/maintainers/davidkruger)[@davidkruger](https://github.com/davidkruger)

---

Top Contributors

[![krugerdavid](https://avatars.githubusercontent.com/u/467435?v=4)](https://github.com/krugerdavid "krugerdavid (3 commits)")

---

Tags

laravelpaymentsParaguaypagoparkrugerdavid

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/krugerdavid-laravel-pagopar/health.svg)

```
[![Health](https://phpackages.com/badges/krugerdavid-laravel-pagopar/health.svg)](https://phpackages.com/packages/krugerdavid-laravel-pagopar)
```

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M3.1k](/packages/craftcms-cms)[sebdesign/laravel-viva-payments

A Laravel package for integrating the Viva Payments gateway

4851.0k](/packages/sebdesign-laravel-viva-payments)[simplestats-io/laravel-client

Server-side analytics for Laravel that follows the full funnel from visit to registration to payment, attributed to the channel that drove it. Revenue, MRR, churn and ad-spend profit (ROAS/CAC) per channel. GDPR compliant, ad-blocker proof.

5021.9k](/packages/simplestats-io-laravel-client)

PHPackages © 2026

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