Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tony98ms/laravel-paymentez
Library to conection to SDK by Paymentez
https://github.com/tony98ms/laravel-paymentez
Last synced: 5 days ago
JSON representation
Library to conection to SDK by Paymentez
- Host: GitHub
- URL: https://github.com/tony98ms/laravel-paymentez
- Owner: tony98ms
- Created: 2024-12-07T21:43:47.000Z (29 days ago)
- Default Branch: main
- Last Pushed: 2024-12-27T19:15:00.000Z (9 days ago)
- Last Synced: 2024-12-27T19:46:53.082Z (9 days ago)
- Language: PHP
- Size: 53.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Laravel Paymentez
[![Latest Stable Version](https://img.shields.io/packagist/v/tonystore/laravel-paymentez?include_prereleases&label=version&color=%23assds)](https://packagist.org/packages/tonystore/laravel-paymentez)
[![Packagist Downloads](https://img.shields.io/packagist/dt/tonystore/laravel-paymentez)](https://packagist.org/packages/tonystore/laravel-paymentez)
[![License](https://img.shields.io/packagist/l/tonystore/laravel-paymentez)](https://packagist.org/packages/tonystore/laravel-paymentez)
[![PHP Version Require](https://img.shields.io/packagist/dependency-v/tonystore/laravel-paymentez/php)](https://packagist.org/packages/tonystore/livewire-permission)Esta librería de Laravel permite integrarse fácilmente con las APIs de [Paymentez](https://www.nuvei.com.ec), proporcionando una forma sencilla de realizar operaciones como pagos, consultas de transacciones, entre otras.
## Instalación y Configuración
1. Instala la librería usando Composer:
```bash
composer require tonystore/laravel-paymentez
```2. Publica el archivo de configuración ejecutando:
```bash
php artisan vendor:publish --provider="TonyStore\LaravelPaymentez\LaravelPaymentezProvider"
```
Esto generará un archivo `config/paymentez.php` donde podrás ajustar las configuraciones.3. Agrega las siguientes variables a tu archivo .env:
```env
PAYMENTEZ_API_CODE=your-auth-code
PAYMENTEZ_API_KEY=your-auth-key
```- `PAYMENTEZ_API_CODE`: Código de autenticación proporcionado por Paymentez.
- `PAYMENTEZ_API_KEY`: Llave de autenticación para conectarse a las APIs.4. Ejemplo de archivo de configuración generado (`config/paymentez.php`):
```php
env('PAYMENTEZ_API_CODE', ''),'auth_key' => env('PAYMENTEZ_API_KEY', ''),
'base_url' => [
'ccapi' => env('PAYMENTEZ_CCAPI_URL'),
'noccapi' => env('PAYMENTEZ_NOCCAPI_URL')
],
];
```