fraudlabspro/sylius-fraudlabspro-plugin 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

  1. Require the plugin via Composer:
composer require fraudlabspro/sylius-fraudlabspro-plugin
  1. 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],
];
  1. 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
  1. 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!

  1. Log into your Sylius Admin dashboard.

  2. Navigate to Configuration -> Channels in the left sidebar.

  3. Edit the channel you want to protect.

  4. Scroll to the FraudLabs Pro section at the bottom of the page.

  5. Check the Enable FraudLabs Pro Validator box.

  6. Enter your FraudLabs Pro API Key (You can find this in your Merchant Dashboard).

  7. 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 REJECT by 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
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-06-23

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固