PHPackages                             arca/payment-gateways - 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. arca/payment-gateways

ActiveLibrary[Payment Processing](/categories/payments)

arca/payment-gateways
=====================

payment gateway integration in laravel

1.2.1(3mo ago)17611[1 PRs](https://github.com/elmudometal/payment-gateways/pulls)MITPHPPHP ^8.1CI passing

Since Dec 1Pushed 1w ago1 watchersCompare

[ Source](https://github.com/elmudometal/payment-gateways)[ Packagist](https://packagist.org/packages/arca/payment-gateways)[ Docs](https://github.com/elmudometal/payment-gateways)[ RSS](/packages/arca-payment-gateways/feed)WikiDiscussions main Synced today

READMEChangelog (8)Dependencies (30)Versions (22)Used By (0)

payment gateway integration in laravel
======================================

[](#payment-gateway-integration-in-laravel)

[![Latest Version on Packagist](https://camo.githubusercontent.com/28e5c90d723909e53f003ff566ddb4bc8345d5b1eb030b03dc9d7a009582bf43/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f617263612f7061796d656e742d67617465776179732e7376673f7374796c653d666c61742d737175617265)](https://repositorios.arca.cl/payment-gateways/)[![GitHub Tests Action Status](https://camo.githubusercontent.com/35e1ad30154a24b8a2a9bf82eb6e6c77414c3aaea4be3537e1e104007583f790/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f617263612f7061796d656e742d67617465776179732f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/elmudometal/payment-gateways/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/ba1d7b89dfa9c8baa15f3762f6dbe999444d30aa85f1c060f387b0ffc73a1437/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f617263612f7061796d656e742d67617465776179732f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/elmudometal/payment-gateways/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/aa9d95ad7c572ad23774e6694f975056c759e86bb286fba3b6cfe2f9133a4400/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f617263612f7061796d656e742d67617465776179732e7376673f7374796c653d666c61742d737175617265)](https://repositorios.arca.cl/payment-gateways/)

This package seeks to implement Chilean payment gateways and in general for Laravel allowing easy payment integration.

Payment gateways added:

- Webpay
- Getnet
- PayPal
- Flow
- Niubiz

Support us
----------

[](#support-us)

If you want another payment gateway, write without problem and I will try to implement it.

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

[](#installation)

You can install the package via composer:

```
composer require arca/payment-gateways
```

You can publish and run the migrations with:

```
php artisan vendor:publish --tag="payment-gateways-migrations"
php artisan migrate
```

You can publish the config file with:

```
php artisan vendor:publish --tag="payment-gateways-config"
```

This is the contents of the published config file:

```
return [
    'getnet' => [
        'commerce_name' => 'Getnet Nombre de Comercio',
        'login' => env('GETNET_LOGIN', ''),
        'tranKey' => env('GETNET_TRAN_KEY', ''),
        'controller' => \Arca\PaymentGateways\Http\Controllers\GetnetController::class,
    ],
    'webpay' => [
        'commerce_name' => 'Webpay Nombre de Comercio',
        'commerce_code' => env('WEBPAY_CODE', ''),
        'commerce_api_key' => env('WEBPAY_API_KEY', ''),
        'controller' => \Arca\PaymentGateways\Http\Controllers\WebpayController::class,
    ],
    'paypal' => [
        'commerce_name' => 'Paypal Nombre de Comercio',
        'client_id' => env('PAYPAL_CLIENT_ID', ''),
        'client_secret' => env('PAYPAL_CLIENT_SECRET', ''),
        'controller' => \Arca\PaymentGateways\Http\Controllers\PaypalController::class,
    ],
    'flow' => [
        'commerce_name' => 'Flow Nombre de Comercio',
        'api_key' => env('FLOW_API_KEY'),
        'secret_key' => env('FLOW_SECRET'),
        'controller' => \Arca\PaymentGateways\Http\Controllers\FlowController::class,
        'status' => [
            '1' => 'pendiente de pago',
            '2' => 'pagada',
            '3' => 'rechazada',
            '4' => 'anulada',
            '-1' => 'Tarjeta inválida',
            '-11' => 'Excede límite de reintentos de rechazos',
            '-2' => 'Error de conexión',
            '-3' => 'Excede monto máximo',
            '-4' => 'Fecha de expiración inválida',
            '-5' => 'Problema en autenticación',
            '-6' => 'Rechazo general',
            '-7' => 'Tarjeta bloqueada',
            '-8' => 'Tarjeta vencida',
            '-9' => 'Transacción no soportada',
            '-10' => 'Problema en la transacción',
            '999' => 'Error desconocido',
        ],
    ],
    'niubiz' => [
        'commerce_name' => 'Niubiz Nombre de Comercio',
        'merchant_id' => env('NIUBIZ_MERCHANT_ID', ''),
        'user' => env('NIUBIZ_USER', ''),
        'password' => env('NIUBIZ_PASSWORD', ''),
        'controller' => \Arca\PaymentGateways\Http\Controllers\NiubizController::class,
    ],
];
```

You can publish the assets file with:

```
php artisan vendor:publish --tag="payment-gateways-assets"
```

Optionally, you can publish the views using

```
php artisan vendor:publish --tag="payment-gateways-views"
```

Events
------

[](#events)

```
 php artisan make:listener YourListenerClass --event=PaymentApproved
 php artisan make:listener Your2ListenerClass --event=PaymentRejected
```

EventServiceProvider

```
protected $listen = [
        PaymentApproved::class => [
            YourListenerClass::class,
        ],
        PaymentRejected::class => [
            Your2ListenerClass::class,
        ],
    ];
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Hernan Soto](https://github.com/elmudometal)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

49

—

FairBetter than 94% of packages

Maintenance91

Actively maintained with recent releases

Popularity21

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 73.9% 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 ~51 days

Total

18

Last Release

67d ago

Major Versions

v0.2.0 → 1.0.02025-02-28

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/16867145?v=4)[Hernan Soto](/maintainers/elmudometal)[@elmudometal](https://github.com/elmudometal)

---

Top Contributors

[![elmudometal](https://avatars.githubusercontent.com/u/16867145?v=4)](https://github.com/elmudometal "elmudometal (51 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (16 commits)")[![neurotools](https://avatars.githubusercontent.com/u/6556055?v=4)](https://github.com/neurotools "neurotools (2 commits)")

---

Tags

laravelpaypalflowwebpayarcapayment-gatewaysGetNet

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/arca-payment-gateways/health.svg)

```
[![Health](https://phpackages.com/badges/arca-payment-gateways/health.svg)](https://phpackages.com/packages/arca-payment-gateways)
```

###  Alternatives

[spatie/laravel-pdf

Create PDFs in Laravel apps

1.0k4.8M47](/packages/spatie-laravel-pdf)[dedoc/scramble

Automatic generation of API documentation for Laravel applications.

2.1k11.2M101](/packages/dedoc-scramble)[spatie/laravel-passkeys

Use passkeys in your Laravel app

471890.7k39](/packages/spatie-laravel-passkeys)[rawilk/profile-filament-plugin

Profile &amp; MFA starter kit for filament.

3914.6k](/packages/rawilk-profile-filament-plugin)[wnx/laravel-backup-restore

A package to restore database backups made with spatie/laravel-backup.

213421.2k2](/packages/wnx-laravel-backup-restore)[harris21/laravel-fuse

Circuit breaker for Laravel queue jobs. Protect your workers from cascading failures.

44855.7k](/packages/harris21-laravel-fuse)

PHPackages © 2026

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