PHPackages                             payfabric/module-payment - 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. payfabric/module-payment

ActiveMagento2-module[Payment Processing](/categories/payments)

payfabric/module-payment
========================

PayFabric Payment Gateway

2.1.2(1y ago)16.5k↓50%6OSL-3.0PHPPHP &gt;=7.3

Since Apr 1Pushed 1y ago4 watchersCompare

[ Source](https://github.com/PayFabric/Magento-Plugin)[ Packagist](https://packagist.org/packages/payfabric/module-payment)[ RSS](/packages/payfabric-module-payment/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (7)DependenciesVersions (12)Used By (0)

PayFabric Gateway Plugin for Magento 2.4.3 or Higher
----------------------------------------------------

[](#payfabric-gateway-plugin-for-magento-243-or-higher)

Requires Magento version 2.4.3 or higher.

Requires an active PayFabric account. Development can be done on a PayFabric Sandbox account. PayFabric is an EVO Payments processing platform.

Description
-----------

[](#description)

PayFabric gateway extension allows you to add PayFabric payment processing capabilities into Magento 2.4.3 or higher without any custom coding.

Display Modes
-------------

[](#display-modes)

The plugin offers three modes to present the Hosted Payment Page:

- **Dialog**
- **Iframe**
- **Redirect**

Alternative Payment Methods
---------------------------

[](#alternative-payment-methods)

Alternative Payment Methods supported by each display mode:

Payment MethodDialogIframeRedirect**Apple Pay**✔✘✘**Google Pay**✔✘✔**PayPal/Venmo**✔✘✘Installation
------------

[](#installation)

Before installing please take a full backup of your website.

### Manual Installation

[](#manual-installation)

1. Download the extension zip file.
2. Unzip the extension and upload the PayFabric folder to your Magento root directory app/code (create folder if not exists) via FTP/SSH.
3. Enable the extension and clear the static view files by running the command: ```
    bin/magento module:enable PayFabric_Payment --clear-static-content

    ```
4. Register the extension and initiate the database migrations by running the command: ```
    bin/magento setup:upgrade

    ```
5. Recompile the Magento project by running the command: ```
    bin/magento setup:di:compile

    ```
6. Clear the Magento store’s cache by running the command: ```
    bin/magento cache:flush

    ```

### Install with Composer

[](#install-with-composer)

1. Run from Magento root folder: ```
    composer require payfabric/module-payment

    ```
2. Enable the extension and clear the static view files by running the command: ```
    bin/magento module:enable PayFabric_Payment --clear-static-content

    ```
3. Register the extension and initiate the database migrations by running the command: ```
    bin/magento setup:upgrade

    ```
4. Recompile the Magento project by running the command: ```
    bin/magento setup:di:compile

    ```
5. Clear the Magento store’s cache by running the command: ```
    bin/magento cache:flush

    ```

Configuration
-------------

[](#configuration)

In the PayFabric Portal, prepare a device with a default gateway configured.

1. Go to Settings &gt; Dev Central &gt; Device Management to create a device to obtain the Device ID and Password.
2. Go to Settings &gt; Gateway Account Configuration, click '+ New Gateway Account' if the payment gateway account is not associated to an existing PayFabric account, and then set the default gateway under Default Gateway Settings. Please refer to the user guide in [PayFabric](https://github.com/PayFabric/Portal/blob/master/PayFabric/README.md "PayFabric").
3. If you enable the eCheck Gateway Account, you can customize the eCheck payment UI to default the Entry Class to ‘WEB’ and hide it by adding the following custom JS in the PayFabric theme (please refer to [PayFabric Themes](https://github.com/PayFabric/Portal/blob/master/PayFabric/Sections/Themes.md "Themes")): ```
    $(function(){
        $(".entryClassDiv").hide();
        $("#EntryClass option").each(function(){if(this.value == 'WEB') this.selected = true; else this.selected = false;});
    });
    ```

In your Magento account:

- Go to STORES &gt; Configuration &gt; Sales &gt; Payment Methods to enter your gateway and device data. [![image](ScreenShots/setting_admin.png)](ScreenShots/setting_admin.png)
- Select your Display Mode. When using "Iframe" as your Display Mode, you must create a theme to add the following custom JS and configure this theme as default theme in the PayFabric Portal (please refer to [PayFabric Themes](https://github.com/PayFabric/Portal/blob/master/PayFabric/Sections/Themes.md "Themes")). Please don't do that for other display modes which will affect your payment UI. ```
    $(".BillingContent").hide();
    $("#payButton").hide();
    typeof (receiveMessage) !== "undefined" && window.removeEventListener("message", receiveMessage, false);
    var receiveMessage = function (event) {
        var data = event.data;
        if (data.match("^\\{(.+:.+,*){1,}\\}$"))  data = $.parseJSON(data);
        if (data.action == 'pay') {
            typeof (data.BillCountryCode) !== "undefined" && $("#BillCountryCode").val($("#BillCountryCode").find("option[value^=" + data.BillCountryCode + "]").val()).trigger('change');
            typeof (data.BillAddressLine1) !== "undefined" && $("#BillAddressLine1").val(data.BillAddressLine1);
            typeof (data.BillAddressLine2) !== "undefined" && $("#BillAddressLine2").val(data.BillAddressLine2);
            typeof (data.BillCityCode) !== "undefined" && $("#BillCityCode").val(data.BillCityCode);
            typeof (data.BillStateCode) !== "undefined" && $(".state").val($("#BillStateCode").find("option[value^=" + data.BillStateCode + "]").val() || data.BillStateCode);
            typeof (data.BillZipCode) !== "undefined" && $("#BillZipCode").val(data.BillZipCode);
            $("#payButton").click();
        }
    }
    window.addEventListener("message", receiveMessage, false);
    ```
- Next, select your Payment Action. Select "Sale" for a normal website purchase transaction. This is the default option and automatically executes both the authorization and capture for the transaction. The funds from this transaction will be included in your next batch settlement.
    - If you choose "Authorization", see the Capture instructions below.
- Click "Save Config".
- Go to System &gt; Cache Management to flush Magento cache. [![image](ScreenShots/cache_admin.png)](ScreenShots/cache_admin.png)
- When using "Authorization" as your Payment Action, you must “Capture” the transaction when the sale has been completed. If you do not “Capture” the Authorization, no funds will be settled as the transaction is not complete.
    - To capture an authorized transaction: Click on the "Invoice" button at the top right side. [![image](ScreenShots/invoice_create_admin.png)](ScreenShots/invoice_create_admin.png)
    - On the Invoice page, scroll down to the bottom, choose "Capture Online" from the dropdown menu, and click on the "Submit Invoice" button. [![image](ScreenShots/capture_admin.png)](ScreenShots/capture_admin.png)
    - When using "Authorization" as your Payment Action, you may “Void” a transaction when the order has been cancelled before being captured. Click on the "Void" or "Cancel" button at the top right side. [![image](ScreenShots/void_admin.png)](ScreenShots/void_admin.png)
- To refund a sale or captured transaction directly on Magento: Open the invoice of the captured order. [![image](ScreenShots/invoice_admin.png)](ScreenShots/invoice_admin.png)
    - Then click on "Credit Memo" on the top right side menu. [![image](ScreenShots/creditmemo_admin.png)](ScreenShots/creditmemo_admin.png)
    - On the credit memo page, click "Refund". [![image](ScreenShots/refund_admin.png)](ScreenShots/refund_admin.png)

Support
-------

[](#support)

Have a question or need help? Contact

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance47

Moderate activity, may be stable

Popularity28

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 97.3% 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 ~222 days

Recently: every ~236 days

Total

6

Last Release

398d ago

Major Versions

1.2.0 → 2.0.02022-09-15

PHP version history (4 changes)1.2.0PHP ~5.5.22|~5.6.0|^7.0

2.0.0PHP ~5.5.22|~5.6.0|^7.0|~8.1.0

2.1.1PHP ~5.5.22|~5.6.0|^7.0|~8.1.0|~8.2.0

2.1.2PHP &gt;=7.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/147a3708088577d34243a1ede2d04d373478086c502d43dc94de68509cc568b7?d=identicon)[JackZhang-nodus](/maintainers/JackZhang-nodus)

---

Top Contributors

[![JackZhang-nodus](https://avatars.githubusercontent.com/u/86044816?v=4)](https://github.com/JackZhang-nodus "JackZhang-nodus (144 commits)")[![navarr](https://avatars.githubusercontent.com/u/145128?v=4)](https://github.com/navarr "navarr (1 commits)")[![NickDadar](https://avatars.githubusercontent.com/u/124314332?v=4)](https://github.com/NickDadar "NickDadar (1 commits)")[![nikkipnguyen](https://avatars.githubusercontent.com/u/15000549?v=4)](https://github.com/nikkipnguyen "nikkipnguyen (1 commits)")[![ShaunSharples](https://avatars.githubusercontent.com/u/12906817?v=4)](https://github.com/ShaunSharples "ShaunSharples (1 commits)")

### Embed Badge

![Health badge](/badges/payfabric-module-payment/health.svg)

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

###  Alternatives

[omnipay/paypal

PayPal gateway for Omnipay payment processing library

3156.8M53](/packages/omnipay-paypal)[eduardokum/laravel-boleto

Biblioteca com boletos para o laravel

626351.9k2](/packages/eduardokum-laravel-boleto)[tbbc/money-bundle

This is a Symfony bundle that integrates moneyphp/money library (Fowler pattern): https://github.com/moneyphp/money.

1961.9M](/packages/tbbc-money-bundle)[2checkout/2checkout-php

2Checkout PHP Library

83740.3k2](/packages/2checkout-2checkout-php)[smhg/sepa-qr-data

Generate QR code data for SEPA payments

61717.2k5](/packages/smhg-sepa-qr-data)[omnipay/dummy

Dummy driver for the Omnipay payment processing library

271.2M33](/packages/omnipay-dummy)

PHPackages © 2026

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