fraudlabspro/sylius-fraudlabspro-plugin
Composer 安装命令:
composer require fraudlabspro/sylius-fraudlabspro-plugin
包简介
FraudLabs Pro integration for Sylius
README 文档
README
Protect your Sylius eCommerce store from fraud with FraudLabs Pro. This plugin integrates seamlessly into the Sylius checkout process, automatically screening orders for fraud risk using the FraudLabs Pro API.
By utilizing Security through Ambiguity, it securely halts fraudulent transactions during the checkout flow without exposing your security rules to bad actors.
Requirements
-
PHP 8.2 or higher
-
Sylius 2.0 or higher
Installation
- Require the plugin via Composer:
composer require fraudlabspro/sylius-fraudlabspro-plugin
- Register the plugin:
Add the bundle to your config/bundles.php file (if Symfony Flex didn't do it automatically):
return [ // ... FraudLabsPro\SyliusFraudLabsProPlugin\FraudLabsProSyliusFraudLabsProPlugin::class => ['all' => true], ];
- Update your database:
Because this plugin adds a ChannelConfiguration entity to securely store your API keys per channel, you must run database migrations:
bin/console doctrine:migrations:diff bin/console doctrine:migrations:migrate
- Clear the application cache:
bin/console cache:clear
Usage & Configuration
Once installed, the plugin is managed entirely from your Sylius Admin panel. You do not need to configure any YAML files!
-
Log into your Sylius Admin dashboard.
-
Navigate to Configuration -> Channels in the left sidebar.
-
Edit the channel you want to protect.
-
Scroll to the FraudLabs Pro section at the bottom of the page.
-
Check the Enable FraudLabs Pro Validator box.
-
Enter your FraudLabs Pro API Key (You can find this in your Merchant Dashboard).
-
Click Save changes.
The plugin will now automatically screen all checkouts processed through that channel!
How It Works
When a customer attempts to complete their order, this plugin silently sends the transaction data (billing details, IP address, etc.) to the FraudLabs Pro API.
-
If the transaction is approved, the checkout proceeds normally.
-
If the transaction is flagged as
REJECTby your FraudLabs Pro rules, the order is halted, and the customer is safely redirected back to the checkout summary with a generic error message ("An error occurred while processing your order. Please review your details and try again.") to prevent hinting to fraudsters.
License
This plugin is licensed under the MIT License.
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-06-23