PHPackages                             gozozo/openpay-server - 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. gozozo/openpay-server

ActiveLibrary

gozozo/openpay-server
=====================

This is a server implementing the payment services for Openpay at openpay.mx

0.1.3(10y ago)34.9k↑419.2%1[2 issues](https://github.com/gozozo/openpay-server/issues)MITPHP

Since Nov 19Pushed 6y ago4 watchersCompare

[ Source](https://github.com/gozozo/openpay-server)[ Packagist](https://packagist.org/packages/gozozo/openpay-server)[ RSS](/packages/gozozo-openpay-server/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (1)Versions (6)Used By (0)

Openpay Server PHP - Laravel
============================

[](#openpay-server-php---laravel)

Implementación de los servicios de Openpay

\##Instalación

Ejecutar el siguiente comando

```
composer require gozozo/openpay-server
```

Después agregar la siguiente línea en **`provider`** en el archivo que se encuentra en **`config/app.php`** del proyecto

```
Gozozo\OpenpayServer\OpenpayServerServiceProvider::class,
```

y luego ejecutamos los siguintes dos comandos en la terminal

```
php artisan vendor:publish --provider="Gozozo\OpenpayServer\OpenpayServerServiceProvider"
php artisan migrate
```

\##Configuración de .env Es necesario agregar las siguientes configuraciones en el archivo **.env** del proyecto de **Laravel**

\###Configurar middleware

Permite una autenticación antes de acceder a las rutas de openpay

```
OPENPAY_MIDDLEWARE=

```

\###Llaves del API de Openpay

Configuración de las llaves

```
OPENPAY_ID =
OPENPAY_SK =
OPENPAY_ID_PRODUCTION =
OPENPAY_SK_PRODUCTION =
```

\###Tabla de referencia

Relación de la tabla de referencia openpay con tu tabla de usuarios. Dejar sin datos si no se desea relación

```
OPENPAY_TABLE =
OPENPAY_REFERENCE =
```

\##Activar modo producción

Es necesario asignar a la variable de `APP_ENV` que se encuentra en nuestro archivo **.env** a **production**

```
APP_ENV = production
```

Rutas
=====

[](#rutas)

### Clientes

[](#clientes)

TipoRutaDescripciónObservacionesEjemploPOSTopenpay/customerCrea un nuevo cliente**Parameters** lleva el json de información del cliente: `[parameters] = `**url :** ` http://ejemplo.com/openpay/customer/` **datos :** `"{"external_id" : "","name" : "customer name","last_name" : "","email" : "customer_email@me.com","requires_account" : false,"phone_number" : "44209087654","address" : {"line1" : "Calle 10","line2" : "col. san pablo","line3" : "entre la calle 1 y la 2","state" : "Queretaro","city" : "Queretaro","postal_code" : "76000","country_code" : "MX"}}"`DELETEopenpay/customer/{id\_user}Elimina al cliente-**url :** `http://ejemplo.com/openpay/customer/1`### Tarjetas de un cliente

[](#tarjetas-de-un-cliente)

TipoRutaDescripciónObservacionesEjemploPOSTopenpay/customer/{id\_user}/cardGuarda una nueve tarjeta al cliente**Parameters** lleva el json de información del tarjeta: `[parameters] = `**url :** `http://ejemplo.com/openpay/customer/1/card` **datos :** `"{"card_number":"4111111111111111","holder_name":"Juan Perez Ramirez","expiration_year":"20","expiration_month":"12","cvv2":"110"}"`GETopenpay/customer/{id\_user}/cardRegresa todas las tarjetas de un cliente-**url :** `http://ejemplo.com/openpay/customer/1/card`DELETEopenpay/customer/{id\_user}/card/{id\_card}Elimina tarjeta del cliente-**url :** `http://ejemplo.com/openpay/customer/1/card/aarwcowd2iuaxfsv5c70`### Cargo con id tarjeta de un cliente

[](#cargo-con-id-tarjeta-de-un-cliente)

TipoRutaDescripciónObservacionesEjemploPOSTopenpay/customer/{id\_user}/card/{id\_card}/chargeCrea un cargo a tarjeta ya guardada**Parameters** lleva el json de información del cargo: `[parameters] = `**url :** `http://ejemplo.com/openpay/customer/1/card/kqgykn96i7bcs1wwhvgw/charge` **datos :** `"{"source_id" : "kqgykn96i7bcs1wwhvgw","method" : "card","amount" : 100,"currency" : "MXN","description" : "Cargo inicial a mi cuenta","order_id" : "oid-00051","device_session_id" : "kR1MiQhz2otdIuUlQkbEyitIqVMiI16f"}"`

###  Health Score

28

—

LowBetter than 57% of packages

Maintenance7

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity57

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

Total

4

Last Release

3197d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/316271e1d2800e248c7f05e7caad4454963903c4a7d43607b97f59619b8da28c?d=identicon)[gozozo](/maintainers/gozozo)

---

Top Contributors

[![gozozo](https://avatars.githubusercontent.com/u/1456223?v=4)](https://github.com/gozozo "gozozo (27 commits)")

### Embed Badge

![Health badge](/badges/gozozo-openpay-server/health.svg)

```
[![Health](https://phpackages.com/badges/gozozo-openpay-server/health.svg)](https://phpackages.com/packages/gozozo-openpay-server)
```

###  Alternatives

[spatie/laravel-mix-preload

Add preload and prefetch links based your Mix manifest

169175.3k2](/packages/spatie-laravel-mix-preload)

PHPackages © 2026

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