PHPackages                             softlogic-gt/laravel-facgateway - 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. [API Development](/categories/api)
4. /
5. softlogic-gt/laravel-facgateway

ActiveLibrary[API Development](/categories/api)

softlogic-gt/laravel-facgateway
===============================

Laravel FAC Gateway

v1.0.7(1y ago)2381PHPPHP &gt;=7.2

Since Aug 1Pushed 1y ago1 watchersCompare

[ Source](https://github.com/softlogic-gt/laravel-facgateway)[ Packagist](https://packagist.org/packages/softlogic-gt/laravel-facgateway)[ RSS](/packages/softlogic-gt-laravel-facgateway/feed)WikiDiscussions master Synced today

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

Laravel FAC Payment Gateway
===========================

[](#laravel-fac-payment-gateway)

Send payment transactions to First Atlantic Commerce service. You must have an active account for this to work. The package automatically validates all input data, generates HTML and redirects to specified route.

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

[](#installation)

`composer require softlogic-gt/laravel-facgateway`

Set your environment variables

```
FAC_TEST=true
FAC_ID=818181818
FAC_PASSWORD=fadsfadsfdasfda1231231232fasf
FAC_REDIRECT=http://localhost/facresponse
FAC_SUCCESS_ACTION=FacController@success
FAC_ERROR_ACTION=FacController@error

```

Usage
-----

[](#usage)

In the constructor, if the email is specified, a confirmation receipt is sent. The default subject is `Comprobante de pago`. For 3DS, an email address is required

### Sale

[](#sale)

```
use SoftlogicGT\FacGateway\FacGateway;

$creditCard = '4000000000000416';
$expirationMonth = '2';
$expirationYear = '26';
$cvv2 = '123';
$amount = 1230.00;
$externalId = '557854';

$server = new FacGateway([
    'receipt' => [
        'email' => 'buyer@email.com',
        'name'  => 'Buyer name',
    ],
]);

$html = $server->sale($creditCard, $expirationMonth, $expirationYear, $cvv2, $amount, $externalId);

```

It will throw an exception if any error is received from FAC, or an HTML to render for 3DS validation

```
return response($html, 200)->header('Content-Type', 'text/html');

```

After rendering the HTML, you will get a `POST` request to `FAC_REDIRECT`, where you have to process the correct response, and you should handle that response like this:

```
    $fc = new FacGateway([
        'receipt' => [
            'name'  => 'Juan Samara',
            'email' => 'jgalindo@softlogic.com.gt',
        ],
    ]);

    return $fc->callback($request);

```

This will then call the corresponding actions specified in the `FAC_SUCCESS_ACTION` or `FAC_ERROR_ACTION`

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance40

Moderate activity, may be stable

Popularity11

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity49

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

Recently: every ~201 days

Total

10

Last Release

499d ago

Major Versions

v0.0.3 → v1.0.02022-08-31

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/66330140?v=4)[Jose Galindo](/maintainers/jgalindosl)[@jgalindosl](https://github.com/jgalindosl)

---

Top Contributors

[![jgalindosl](https://avatars.githubusercontent.com/u/66330140?v=4)](https://github.com/jgalindosl "jgalindosl (11 commits)")

### Embed Badge

![Health badge](/badges/softlogic-gt-laravel-facgateway/health.svg)

```
[![Health](https://phpackages.com/badges/softlogic-gt-laravel-facgateway/health.svg)](https://phpackages.com/packages/softlogic-gt-laravel-facgateway)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35916.4M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24016.2M20](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172445.0k15](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93459.5k6](/packages/botman-driver-telegram)

PHPackages © 2026

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