PHPackages                             jonathanmontes/omnipay-first-atlantic-commerce - 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. jonathanmontes/omnipay-first-atlantic-commerce

ActiveLibrary[Payment Processing](/categories/payments)

jonathanmontes/omnipay-first-atlantic-commerce
==============================================

omnipay-first-atlantic-commerce

v1.0.2(5y ago)07MITPHPPHP ^7.4

Since Mar 7Pushed 3y agoCompare

[ Source](https://github.com/JonathanAyaHealthcare/omnipay-first-atlantic-commerce)[ Packagist](https://packagist.org/packages/jonathanmontes/omnipay-first-atlantic-commerce)[ Docs](https://github.com/shamarkellman/omnipay-first-atlantic-commerce)[ Fund](https://skellman.com)[ GitHub Sponsors](https://github.com/shamarkellman)[ RSS](/packages/jonathanmontes-omnipay-first-atlantic-commerce/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (5)Versions (5)Used By (0)

Omnipay: First Atlantic Commerce
================================

[](#omnipay-first-atlantic-commerce)

First Atlantic Commerce driver for the Omnipay PHP payment processing library

[![Latest Version on Packagist](https://camo.githubusercontent.com/0b7b28813ab4b6c45d2e9851dccd25e5c69c1c9f0dc545ed3f28dd0e2365f8ea/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7368616d61726b656c6c6d616e2f6f6d6e697061792d66697273742d61746c616e7469632d636f6d6d657263652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/shamarkellman/omnipay-first-atlantic-commerce)[![GitHub Tests Action Status](https://camo.githubusercontent.com/e5283a93abe400193627b8e8d35849d34856fd14afc55dd49cfb07ae8a3efb79/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f7368616d61726b656c6c6d616e2f6f6d6e697061792d66697273742d61746c616e7469632d636f6d6d657263652f54657374733f6c6162656c3d7465737473)](https://github.com/shamarkellman/omnipay-first-atlantic-commerce/actions?query=workflow%3ATests+branch%3Amaster)[![Total Downloads](https://camo.githubusercontent.com/807b32ff7f0d0eb862ee310093f10c17b7596db0e6f7eff44cdc0a60a6e3223b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7368616d61726b656c6c6d616e2f6f6d6e697061792d66697273742d61746c616e7469632d636f6d6d657263652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/shamarkellman/omnipay-first-atlantic-commerce)

Omnipay is a framework agnostic, multi-gateway payment processing library for PHP. This package implements First Atlantic Commerce support for Omnipay.

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

[](#support-us)

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

[](#installation)

You can install the package via composer:

For PHP 8.0+

```
composer require shamarkellman/omnipay-first-atlantic-commerce "^2.0.0"
```

For PHP 7.4

```
composer require shamarkellman/omnipay-first-atlantic-commerce "^1.0.0"
```

Usage
-----

[](#usage)

### Authorize Request

[](#authorize-request)

```
$gateway = Omnipay::create('FirstAtlanticCommerce');
$gateway->setMerchantId('123456789');
$gateway->setMerchantPassword('abc123');
$gateway->setAcquirerId(12345);

$cardData = [
    'number' => '4242424242424242',
    'expiryMonth' => '6',
    'expiryYear' => '2016',
    'cvv' => '123'
];

$response = $gateway->authorize([
    'createCard' => true, //optional - Will return tokenized card if included
    'amount' => '10.00',
    'currency' => 'USD',
    'transactionId' => '1234',
    'card' => $cardData,
    'testMode' => true //use for calls to FAC sandbox
])->send();

if ( $response->isSuccessful() ) {
    print_r($response);
}
else {
    echo $response->getMessage();
}
```

### Single Pass Purchase Request

[](#single-pass-purchase-request)

```
$gateway = Omnipay::create('FirstAtlanticCommerce');
$gateway->setMerchantId('123456789');
$gateway->setMerchantPassword('abc123');
$gateway->setAcquirerId(12345);

$cardData = [
    'number' => '4242424242424242',
    'expiryMonth' => '6',
    'expiryYear' => '2016',
    'cvv' => '123'
];

$response = $gateway->purchase([
    'createCard' => true, //optional - Will return tokenized card if included
    'amount' => '10.00',
    'currency' => 'USD',
    'transactionId' => '1234',
    'card' => $cardData,
    'testMode' => true //use for calls to FAC sandbox
])->send();

if ( $response->isSuccessful() ) {
    print_r($response);
}
else {
    echo $response->getMessage();
}
```

### Capture Previous Transaction

[](#capture-previous-transaction)

```
$gateway = Omnipay::create('FirstAtlanticCommerce');
$gateway->setMerchantId('123456789');
$gateway->setMerchantPassword('abc123');
$gateway->setAcquirerId(12345);

$response = $this->gateway->capture([
    'amount' => '10.00',
    'currency' => 'USD',
    'transactionId' => '1234',
])->send();

if ( $response->isSuccessful() ) {
    $response->getCode();
    $response->getResponseCode();
    $response->getMessage();
    $response->getOriginalResponseCode();
}
else {
    echo $response->getMessage();
}
```

### Hosted Page Request

[](#hosted-page-request)

```
$gateway = Omnipay::create('FirstAtlanticCommerce');
$gateway->setMerchantId('123456789');
$gateway->setMerchantPassword('abc123');
$gateway->setAcquirerId(12345);

$response = $this->gateway->hostedPage([
    'amount' => '10.00',
    'currency' => 'USD',
    'transactionId' => '1234',
    'transactionCode' => TransactionCode::SINGLE_PASS + TransactionCode::REQUEST_TOKEN, //Use values based on requirements
    'cardHolderResponseURL' => 'https://merchant/response/page.php',
    'pageSet' => 'pageSetFromPanel',
    'pageName' => 'pageNameFromPanel',
])->send();

if ( $response->isSuccessful() ) {
    $response->getRedirectUrl();
    $response->getToken(); //the single use token to build hosted page URL. See doc
}
else {
    echo $response->getCode();
    echo $response->getMessage();
}
```

### Hosted Page Result Request

[](#hosted-page-result-request)

This returns the payment data for the hosted payment

```
$gateway = Omnipay::create('FirstAtlanticCommerce');
$gateway->setMerchantId('123456789');
$gateway->setMerchantPassword('abc123');
$gateway->setAcquirerId(12345);

$response = $this->gateway->hostedPageResult([
    'token' => '_JBfLQJNiEmFBtnF3AfoeQ2', //token is provided returned in callback after completes hosted page
]);

if ( $response->isSuccessful() ) {
    echo $response->getResponseCode();
    echo $response->getMessage();
    echo $response->getTransactionId();
    echo $response->getCardReference(); //if tokenization was requested
}
else {
    echo $response->getCode();
    echo $response->getMessage();
}
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

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

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

[](#contributing)

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

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

[](#security-vulnerabilities)

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

Credits
-------

[](#credits)

- [Shamar Kellman](https://github.com/ShamarKellman)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

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

Total

3

Last Release

1940d ago

PHP version history (2 changes)v1.0.0PHP ^7.4|^8.0

v1.0.1PHP ^7.4

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/78754592?v=4)[JonathanMontes](/maintainers/JonathanMontes)[@JonathanMontes](https://github.com/JonathanMontes)

---

Top Contributors

[![freekmurze](https://avatars.githubusercontent.com/u/483853?v=4)](https://github.com/freekmurze "freekmurze (52 commits)")[![mvdnbrk](https://avatars.githubusercontent.com/u/802681?v=4)](https://github.com/mvdnbrk "mvdnbrk (29 commits)")[![ShamarKellman](https://avatars.githubusercontent.com/u/4120411?v=4)](https://github.com/ShamarKellman "ShamarKellman (26 commits)")[![gregkos](https://avatars.githubusercontent.com/u/6676236?v=4)](https://github.com/gregkos "gregkos (4 commits)")[![AdrianMrn](https://avatars.githubusercontent.com/u/12762044?v=4)](https://github.com/AdrianMrn "AdrianMrn (3 commits)")[![JonathanAyaHealthcare](https://avatars.githubusercontent.com/u/111802827?v=4)](https://github.com/JonathanAyaHealthcare "JonathanAyaHealthcare (3 commits)")[![pforret](https://avatars.githubusercontent.com/u/474312?v=4)](https://github.com/pforret "pforret (2 commits)")[![riasvdv](https://avatars.githubusercontent.com/u/3626559?v=4)](https://github.com/riasvdv "riasvdv (2 commits)")[![irfanm96](https://avatars.githubusercontent.com/u/42065936?v=4)](https://github.com/irfanm96 "irfanm96 (2 commits)")[![Nielsvanpach](https://avatars.githubusercontent.com/u/10651054?v=4)](https://github.com/Nielsvanpach "Nielsvanpach (1 commits)")[![weerd](https://avatars.githubusercontent.com/u/105849?v=4)](https://github.com/weerd "weerd (1 commits)")

---

Tags

shamarkellmanomnipay-first-atlantic-commerce

###  Code Quality

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/jonathanmontes-omnipay-first-atlantic-commerce/health.svg)

```
[![Health](https://phpackages.com/badges/jonathanmontes-omnipay-first-atlantic-commerce/health.svg)](https://phpackages.com/packages/jonathanmontes-omnipay-first-atlantic-commerce)
```

###  Alternatives

[ignited/laravel-omnipay

Integrates Omnipay with Laravel and provides an easy configuration.

5211.1M12](/packages/ignited-laravel-omnipay)[omnipay/mollie

Mollie driver for the Omnipay payment processing library

631.8M10](/packages/omnipay-mollie)[silverstripe/silverstripe-omnipay

SilverStripe Omnipay Payment Module

38110.0k17](/packages/silverstripe-silverstripe-omnipay)

PHPackages © 2026

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