PHPackages                             vbdev/magento2-payment-guard - 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. vbdev/magento2-payment-guard

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

vbdev/magento2-payment-guard
============================

Magento 2 Payment Guard

1.1.0(2y ago)08OSL-3.0PHPPHP &gt;=8.1

Since Nov 29Pushed 2y ago1 watchersCompare

[ Source](https://github.com/viniciusgborges/magento2-payment-guard)[ Packagist](https://packagist.org/packages/vbdev/magento2-payment-guard)[ RSS](/packages/vbdev-magento2-payment-guard/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)DependenciesVersions (3)Used By (0)

magento2-payment-guard
======================

[](#magento2-payment-guard)

```
composer require vbdev/magento2-payment-guard

```

Main Functionalities
--------------------

[](#main-functionalities)

- The module offers the possibility to limit transactions and transaction attempts within a time range.
- This is very useful to avoid malicious attacks with robots at checkout and also to avoid a possible overload of attempted card purchases, for example, at your external service.
- The module has a configuration area in the admin in **System-&gt;Payment Guard-&gt;Settings**:

[![payment guard config](https://camo.githubusercontent.com/e6cab2d9d48d616ef3ff59dadd13b621d6264853ba028e6c5dfb804fd196c065/68747470733a2f2f692e696d6775722e636f6d2f42556f544e72482e706e67)](https://camo.githubusercontent.com/e6cab2d9d48d616ef3ff59dadd13b621d6264853ba028e6c5dfb804fd196c065/68747470733a2f2f692e696d6775722e636f6d2f42556f544e72482e706e67)

- In this area we can enable the module and define our transaction limit and its time interval, as well as transaction attempts:

[![payment guard settings](https://camo.githubusercontent.com/915efc501f60a6dff0427115a9f455e514b046593f80d93d0a63ea1b15c642e3/68747470733a2f2f692e696d6775722e636f6d2f615172464237382e706e67)](https://camo.githubusercontent.com/915efc501f60a6dff0427115a9f455e514b046593f80d93d0a63ea1b15c642e3/68747470733a2f2f692e696d6775722e636f6d2f615172464237382e706e67)

- Example: You do not have a very suitable security system for checkout due to your business model, which is why attacks were carried out with robots carrying out thousands of transactions in a short period of time, this caused your website to crash and entire spreadsheet of orders becomes disorganized, to avoid this you can use this module, defining a limit of transactions, such as 10, for example, in a time interval of 5 minutes (we agree that it is very unlikely for a normal person to carry out 10 transactions in a interval of 5 minutes), if it exceeds this limit in this time interval, the module will block further purchases for that IP.
- The blocks and all information of users who fall for this fraud will be listed in an admin grid in **System-&gt;Payment Guard-&gt;Payment Guard Logs**:

[![payment guard admin grid](https://camo.githubusercontent.com/9e1fb2ebc5a169c50e6ce4eeed0774d9d71f1226ff9dcb9f7291ecbaa6122711/68747470733a2f2f692e696d6775722e636f6d2f527a7752597a482e706e67)](https://camo.githubusercontent.com/9e1fb2ebc5a169c50e6ce4eeed0774d9d71f1226ff9dcb9f7291ecbaa6122711/68747470733a2f2f692e696d6775722e636f6d2f527a7752597a482e706e67)

- The module also offers the possibility for you to add an IP from the grid to the blacklist, thus preventing that IP from being able to make purchases in the store:

[![payment guard blacklist](https://camo.githubusercontent.com/5bdfb656f72555edc1a8f56488a0b0eb5d755c9ccf53036871335cd2ec2218d5/68747470733a2f2f692e696d6775722e636f6d2f4e6a42645161472e706e67)](https://camo.githubusercontent.com/5bdfb656f72555edc1a8f56488a0b0eb5d755c9ccf53036871335cd2ec2218d5/68747470733a2f2f692e696d6775722e636f6d2f4e6a42645161472e706e67)[![payment guard blacklist1](https://camo.githubusercontent.com/de2e0fe931882dbb6c53ba6250b0eb0395bba1972802dd3c0a106f0b9b055430/68747470733a2f2f692e696d6775722e636f6d2f7647755a464b642e706e67)](https://camo.githubusercontent.com/de2e0fe931882dbb6c53ba6250b0eb0395bba1972802dd3c0a106f0b9b055430/68747470733a2f2f692e696d6775722e636f6d2f7647755a464b642e706e67)

- The same settings and behavior are replicated for the attempts.

Install
-------

[](#install)

### Type 1: Zip file

[](#type-1-zip-file)

- Unzip the zip file in `app/code/Vbdev`
- Enable the module by running `bin/magento module:enable Vbdev_PaymentGuard`
- Apply database updates by running `bin/magento setup:upgrade`
- Flush the cache by running `bin/magento cache:flush`

### Type 2: Composer

[](#type-2-composer)

- Install the module composer by running `composer require vbdev/magento2-payment-guard`
- enable the module by running `bin/magento module:enable Vbdev_PaymentGuard`
- apply database updates by running `bin/magento setup:upgrade`
- Flush the cache by running `bin/magento cache:flush`

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 96.2% 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 ~0 days

Total

2

Last Release

899d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f3d3cddbc643d26f332159491c81b8d6e0d139ed49c609208f53729f9a3417bc?d=identicon)[viniciusgborges](/maintainers/viniciusgborges)

---

Top Contributors

[![ViniciusBorges1](https://avatars.githubusercontent.com/u/178296220?v=4)](https://github.com/ViniciusBorges1 "ViniciusBorges1 (25 commits)")[![viniciusgborges](https://avatars.githubusercontent.com/u/99985671?v=4)](https://github.com/viniciusgborges "viniciusgborges (1 commits)")

### Embed Badge

![Health badge](/badges/vbdev-magento2-payment-guard/health.svg)

```
[![Health](https://phpackages.com/badges/vbdev-magento2-payment-guard/health.svg)](https://phpackages.com/packages/vbdev-magento2-payment-guard)
```

###  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)
