wallee/plugin-core 问题修复 & 功能扩展

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

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

wallee/plugin-core

Composer 安装命令:

composer require wallee/plugin-core

包简介

Core functionality for the Wallee plugins.

README 文档

README

The canonical, framework-agnostic business logic engine for Wallee payment integrations.

This library abstracts the complexity of the Wallee SDK and provides a standardized, robust implementation of payment flows. It is designed to be used as a core dependency by platform-specific plugins (Magento, WooCommerce, Shopware, etc.), decoupling business logic from platform infrastructure.

Core Philosophy

The goal of this project is to centralize all payment business logic into a single, reusable library, decoupling it from the specific constraints of platforms like Magento or WooCommerce.

Instead of duplicating complex logic across different shop systems, plugin-core implements the payment workflows once, using pure PHP. This shifts the role of the shop-specific plugin:

  • Plugin Core: Implements the business logic, manages state machines, and handles all API interactions via the SDK.
  • Shop Plugin: Acts as an adapter. It interchanges data between the shop and the Core, handles database persistence, manages configuration, and integrates into the shop's frontend/backend events.

Key Architectural Benefits

  • Pure PHP: Framework-agnostic code that runs anywhere PHP runs.
  • Minimal Dependencies: Depends only on the official wallee/php-sdk, making it lightweight and easy to port to any environment.
  • Type Safety: Written with strict typing to catch errors early.
  • Testability: Designed for 100% unit test coverage with isolated components.
  • PSR Standards: Fully compliant with PSR-3 (Logging) and other standard interfaces.
  • Contract-Driven: Clear Interfaces and Abstract Base Classes guide developers to implement the necessary platform-specific adapters correctly.

Key Features

The library is divided into major functional components, each designed for robustness and ease of integration.

1. Checkout Engine

The core of the payment flow. Handles transaction creation and management with a sophisticated "upsert" strategy, ensuring seamless navigation without duplicate charges.

2. Webhook Processor

The engine for handling asynchronous events from the Wallee Portal. It's built for scale and high concurrency.

3. Webhook Management

Tools for programmatically managing webhooks in the Wallee Portal, including URL creation and Listener setup.

4. Transaction Completion (Capture & Void)

Manage the final stages of the transaction lifecycle. Finalize payments (Capture) or cancel them (Void) with dedicated service handlers.

5. Recurring Payments

Enables Merchant Initiated Transactions (MIT) for seamless subscription renewals and unscheduled subsequent charges using saved tokens.

6. Refund Management

Support for full and partial refunds. Includes precise line-item logic and validation to prevent over-refunding.

7. Document Management

Retrieve official PDF documents (Invoices, Packing Slips, Credit Notes) directly from the Wallee Portal for the merchants.

8. Payment Method Service

A centralized service to fetch available payment method configurations from the Wallee Portal, ensuring the shop systems have an up-to-date view of available payment methods.

Documentation

For a detailed look at how to implement each module, refer to the guides in the docs/ directory:

Examples

For a runnable example for each of the modules, refer to the examples subdirectories in each of the module directories.

Installation

composer require wallee/plugin-core

Unit Tests

You can run the test suite to verify the library's behavior.

composer test

License

Apache License. See [LICENSE.txt].

wallee/plugin-core 适用场景与选型建议

wallee/plugin-core 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 643 次下载、GitHub Stars 达 0, 最近一次更新时间为 2026 年 02 月 13 日, 在 PHP 生态内属于活跃度较高的组件。

我们在过去多个企业项目中使用过 wallee/plugin-core 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 wallee/plugin-core 我们能提供哪些服务?
定制开发 / 二次开发

基于 wallee/plugin-core 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 643
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 4
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

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

其他信息

  • 授权协议: Apache-2.0
  • 更新时间: 2026-02-13