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)2371PHPPHP &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 1mo ago

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

30

—

LowBetter than 64% of packages

Maintenance43

Moderate activity, may be stable

Popularity11

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity48

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

446d ago

Major Versions

v0.0.3 → v1.0.02022-08-31

### Community

Maintainers

![](https://www.gravatar.com/avatar/f9b62ef229498f67cac52462df0bdea1d5ff7e0e5b6ee3d1ed6df2dfc10130b4?d=identicon)[jgalindosl](/maintainers/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

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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