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.0.2(7mo ago)12201[1 PRs](https://github.com/elmudometal/payment-gateways/pulls)MITPHPPHP ^8.1CI passing

Since Dec 1Pushed 2mo 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 1mo ago

READMEChangelog (6)Dependencies (15)Versions (18)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

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',
        ],
    ],
];
```

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

44

—

FairBetter than 92% of packages

Maintenance76

Regular maintenance activity

Popularity17

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 72.7% 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 ~47 days

Recently: every ~119 days

Total

15

Last Release

234d ago

Major Versions

v0.2.0 → 1.0.02025-02-28

### Community

Maintainers

![](https://www.gravatar.com/avatar/6a09afaf89738b6daa9f9d85576cb487beacbb249f1b2d987f3900b2f74cd882?d=identicon)[elmudometal](/maintainers/elmudometal)

---

Top Contributors

[![elmudometal](https://avatars.githubusercontent.com/u/16867145?v=4)](https://github.com/elmudometal "elmudometal (40 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (13 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

[vormkracht10/laravel-mails

Laravel Mails can collect everything you might want to track about the mails that has been sent by your Laravel app.

24149.7k](/packages/vormkracht10-laravel-mails)[danestves/laravel-polar

A package to easily integrate your Laravel application with Polar.sh

7812.3k](/packages/danestves-laravel-polar)[musahmusah/laravel-multipayment-gateways

A Laravel Package that makes implementation of multiple payment Gateways endpoints and webhooks seamless

852.2k1](/packages/musahmusah-laravel-multipayment-gateways)[creagia/laravel-redsys

Laravel Redsys Payments Gateway

2013.6k](/packages/creagia-laravel-redsys)

PHPackages © 2026

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