PHPackages                             ferlokz/omnipay-pagandocheck - 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. ferlokz/omnipay-pagandocheck

ActiveLibrary[Payment Processing](/categories/payments)

ferlokz/omnipay-pagandocheck
============================

Pasarela de pago Pagando Check para OmniPay.

v1.2.2(1y ago)001MITPHP

Since Feb 7Pushed 1y ago3 watchersCompare

[ Source](https://github.com/ferlokz/Omnipay-PagandoCheck)[ Packagist](https://packagist.org/packages/ferlokz/omnipay-pagandocheck)[ Docs](https://github.com/ferlokz/Omnipay-PagandoCheck)[ RSS](/packages/ferlokz-omnipay-pagandocheck/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (6)Dependencies (2)Versions (7)Used By (0)

Ferlokz/OmnipayPagandoCheck
===========================

[](#ferlokzomnipaypagandocheck)

Integración de pasarela de pago de Pagando Check para su uso mediante la interfaz de Omnipay.

[Omnipay](https://omnipay.thephpleague.com/) es una librería de php que permite la integración y gestión de múltiples pasarelas de pago compartiendo una única interfaz para reducir o evitar ajustes complejos en código.

[Pagando Check](https://www.pagandocheck.com/) es una pasarela de pago que permite transacciones en comercios electrónicos y en terminal.

Instalación del paquete en su proyecto
--------------------------------------

[](#instalación-del-paquete-en-su-proyecto)

```
    composer require ferlokz/omnipay-pagandocheck
```

Implementación
--------------

[](#implementación)

1. Crear una cuenta en [Pagando Check](https://www.pagandocheck.com/) y acceder al portal de administración.
2. Buscar sección de API para sitio web. Seleccione el método de cobro "API".
3. Configurar API siguiendo los pasos mostrados y obtener llave de pruebas.
4. Para consumir la pasarela de pago necesita el **nombre de usuario** y la **Llave pública** para pruebas.
5. Definir el uso de la librería de Omnipay y otras si aplica.

```
    // Librerías a usar
    use Omnipay\Omnipay;
    use Dotenv\Dotenv;
```

6. Configurar **nombre de usuario** y la **Llave pública**.

```
    // Obtener los valores de user y password desde las variables de entorno
    $api_user = $_ENV['API_USER'];
    $api_password = $_ENV['API_PUBLIC_KEY'];
```

7. Inicializar la pasarela de pago con Omnipay.

```
    // Inicializar el gateway
    $gateway = Omnipay::create('Ferlokz\OmnipayPagandoCheck\Gateway');
    $gateway->setUser($api_user);
    $gateway->setPassword($api_password);
```

8. Recuperar el token de autorización.

```
    // Recuperar el token
    $response = $gateway->getAuthorizationToken()->send();

    if ($response->isSuccessful()) {
        $token = $response->getAuthorizationToken();
        echo "Token obtenido: " . $token . "";
    } else {
        echo "Error al obtener el token.";
        exit();
    }

    $gateway->setToken($token);
```

9. Crear un cliente.

```
    // Crear un cliente
    $response = $gateway->createClient([
        'email' => 'jdoe@test.com',
        'name' => 'John',
        'lastName' => 'Doe',
        'secondLastName' => 'Johnson',
        'phone' => '1234567890',
        'birthday' => '01/01/2007',
    ])->send();

    if ($response->isSuccessful()) {
        $userId = $response->getUserId();
        echo "Id del usuario: " . $userId . "";
    } else {
        echo "Error al obtener el Id del usuario.";
        exit();
    }

    $gateway->setUserId($userId);
```

10. Agregar una tarjeta al cliente.

```
    // Agregar una tarjeta
    $response = $gateway->addCard([
        'userId' => $gateway->getUserId(),
        'pan' => '1111111111111111',
        'cvv' => '171',
        'exp_month' => '02',
        'exp_year' => '23',
        'name' => 'FRANCISCO TORRES BENAVIDES',
        'street' => 'Diego Rivera',
        'noExt' => '720',
        'district' => 'Insurgentes',
        'zipCode' => '31104',
        'city' => 'Chihuahua',
        'state' => 'Chihuahua',
        'country' => 'MX'
    ])->send();

    if ($response->isSuccessful()) {
        $cardId = $response->getCardId();
        echo "Id de la tarjeta: " . $cardId . "";
    } else {
        echo "Error al obtener el Id de la tarjeta.";
        exit();
    }

    $gateway->setCardId($cardId);
```

11. Realizar una compra con la información del cliente y la tarjeta registrada.

```
    // Realizar una compra
    $response = $gateway->purchase([
        'userId' => $gateway->getUserId(),
        'amount' => 500.00,
        'concept' => '',
        'cardId' => $gateway->getCardId(),
        'aftToken' => '',
        'pin' => '',
        'street' => '',
        'noExt' => '',
        'district' => '',
        'zipCode' => '',
        'city' => '',
        'state' => '',
        'country' => '',
        'expediteShipping' => 'false',
        'items' => [
            [
                'quantity' => 1,
                'productSku' => 'ABC2567',
                'productName' => 'Producto de Prueba',
                'productType' =>'OTHER',
                'unitPrice' => 500,
                'totalAmount' => 500
            ]
        ],
    ])->send();

    if ($response->isSuccessful()) {
        $folio = $response->getFolio();
        echo "Folio: " . $folio . "";
    } else {
        echo "Error al obtener el folio.";
        exit();
    }

    $gateway->setFolio($folio);
```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance49

Moderate activity, may be stable

Popularity1

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity42

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

Total

6

Last Release

368d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ed0c653705f5e31de65b02998338c8c69c9bb898458212fc595a54d6333e8f20?d=identicon)[ferlokz](/maintainers/ferlokz)

---

Top Contributors

[![ferlokz](https://avatars.githubusercontent.com/u/16641820?v=4)](https://github.com/ferlokz "ferlokz (1 commits)")

---

Tags

checkpaymentgatewaypaymerchantomnipayPagando Checkpagando

### Embed Badge

![Health badge](/badges/ferlokz-omnipay-pagandocheck/health.svg)

```
[![Health](https://phpackages.com/badges/ferlokz-omnipay-pagandocheck/health.svg)](https://phpackages.com/packages/ferlokz-omnipay-pagandocheck)
```

###  Alternatives

[omnipay/payflow

Payflow driver for the Omnipay payment processing library

20976.8k3](/packages/omnipay-payflow)[omnipay/payfast

PayFast driver for the Omnipay payment processing library

24626.9k3](/packages/omnipay-payfast)

PHPackages © 2026

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