utanvet-ellenor/connector-magento
Composer 安装命令:
composer require utanvet-ellenor/connector-magento
包简介
Utánvét Ellenőr Magento 2 connector: filter payment methods based on customer reputation and send order outcome signals on status changes.
README 文档
README
Magento 2 module that integrates the Utanvet Ellenor risk check into checkout payment filtering and sends order outcome signals after status changes.
Features
- Filters available payment methods during checkout based on Utanvet Ellenor
sendRequest()response. - Sends
sendSignal()outcome events on configured order status transitions. - Saves guest email early during one-page checkout flows to avoid missing email in risk checks.
- Supports multiple checkout implementations (Luma, Hyva Checkout, common one-step checkouts) without checkout-specific module toggles.
How Payment Filtering Works
Plugin/Payment/MethodListPlugin.php intercepts MethodList::getAvailableMethods().
- If module is disabled, quote is missing, or no managed methods are configured: no filtering.
- Module calls
Model/Service/RequestService::sendRequest($quote). - If no valid API response arrives: no filtering (safe fallback).
- If
result.blockedistrue: configuredmanaged_methodsare removed. - If
result.blockedisfalse: configuredfallback_methodsare removed.
This means:
- "managed methods" are shown only for non-blocked customers.
- "fallback methods" are shown only for blocked customers.
How Outcome Signaling Works
Observer/OrderStatusSignalObserver.php listens to sales_order_save_after.
- Signal is sent only when status actually changes.
- Positive/negative status lists are configurable.
- If a status exists in both lists, negative outcome (
-1) wins.
Guest Email Autosave (Checkout)
The module injects view/frontend/web/js/guest-email-autosave.js via view/frontend/layout/default.xml.
What it does:
- Runs only in one-page checkout contexts.
- Explicitly skips
multishippingcheckout. - Watches email inputs (
input,change,blur) and dynamic DOM updates. - Debounces requests and deduplicates already-saved values.
- Saves email through custom REST endpoint using checkout session.
- Triggers payment-info refresh only when needed, with dedupe to avoid double calls when checkout already refreshes itself.
Custom REST API Endpoints
Defined in etc/webapi.xml:
PUT /V1/utanvetellenor/guest-email- Saves guest email for current checkout session quote.
- Service:
UtanvetEllenor\ConnectorMagento\Api\GuestEmailManagementInterface::setForCurrentQuote
PUT /V1/utanvetellenor/guest-carts/:cartId/email- Saves guest email by masked cart id.
- Service:
UtanvetEllenor\ConnectorMagento\Api\GuestEmailManagementInterface::set
Both endpoints are anonymous resources and return bool.
Admin Configuration
Path: Stores -> Configuration -> Sales -> Utanvet Ellenor
Config key prefix: utanvetellenor/general/*
enabledpublic_api_keyprivate_api_key(encrypted in config storage)sandboxthreshold(float between-1and1)managed_methodsfallback_methodspositive_statusesnegative_statuseslogging_enabled(default scope)
Logging
- File:
var/log/utanvetellenor.log - Logger level:
infoand above. - Controlled by
logging_enabledconfig.
Installation
Example (composer-based):
composer require utanvet-ellenor/connector-magento bin/magento module:enable UtanvetEllenor_ConnectorMagento bin/magento setup:upgrade bin/magento cache:flush
If your deployment mode requires static assets:
bin/magento setup:static-content:deploy -f
Compatibility Notes
- Designed for Magento 2.4.x.
- Uses
utanvet-ellenor/client-php(^2.1). - Checkout autosave logic is frontend-agnostic, but still depends on checkout rendering an email input field.
Current Behavior and Limits
- If request/signal API keys are missing or invalid, external calls are skipped safely.
- If Utanvet Ellenor request fails or returns error, payment methods are not filtered (safe fallback).
- No response cache layer is currently active in this module version.
Development Pointers
Main classes:
Model/Service/RequestService.phpPlugin/Payment/MethodListPlugin.phpObserver/OrderStatusSignalObserver.phpModel/Service/SignalService.phpModel/GuestEmailManagement.phpview/frontend/web/js/guest-email-autosave.js
utanvet-ellenor/connector-magento 适用场景与选型建议
utanvet-ellenor/connector-magento 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 2 次下载、GitHub Stars 达 0, 最近一次更新时间为 2026 年 02 月 19 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 utanvet-ellenor/connector-magento 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 utanvet-ellenor/connector-magento 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 2
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 27
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-02-19