malsubrata/woo-wallet
Composer 安装命令:
composer require malsubrata/woo-wallet
包简介
A powerful, extendable WooCommerce wallet system which support payment, partial payment, cashback reward program as well as refund for your WooCommerce store.
README 文档
README
TeraWallet is the leading wallet system for WooCommerce, providing a seamless digital currency experience for WordPress sites. It allows customers to store funds, earn rewards through various site activities, and use their balance for fast, secure checkouts.
📚 Documentation
- Admin Guide: Configuration, rewards, and technical architecture.
- Customer Guide: Usage instructions and FAQs for shoppers.
🚀 Key Features
- Digital Ledger: Secure transaction history for every user.
- Flexible Top-ups: Customers can add funds via any WooCommerce gateway.
- Partial Payments: Use wallet balance combined with other payment methods.
- Cashback Engine: Rewards based on Cart, Product, or Category rules.
- Incentivized Actions: Earn balance for Signups, Reviews, Referrals, and Daily Visits.
- Peer-to-Peer Transfers: Users can send balance to other registered customers.
- Marketplace Ready: Full compatibility with Dokan, WCFM, and WCMarketplace.
🛠 Developer Section
Core Logic & Hooks
The system uses a strict database-first approach with MySQL-level locking to ensure transaction integrity.
- Filters:
woo_wallet_current_balance: Modify balance display.woo_wallet_payment_is_available: Programmatically toggle the wallet gateway.woo_wallet_cashback_amount: Adjust calculated rewards.
- Actions:
woo_wallet_transaction_recorded: Fires after any ledger update.woo_wallet_payment_processed: Fires after a successful wallet purchase.woo_wallet_admin_adjust_balance: Fires when admins manually edit balance.
REST API (v3)
TeraWallet extends the WooCommerce REST API under the wc/v3/wallet namespace.
GET /balance?email={email}: Retrieve user balance.GET /?email={email}: Retrieve transaction list.POST /: Create credit/debit transactions (Admin only).
📂 File Structure
includes/class-woo-wallet-wallet.php: Core ledger and balance logic.includes/class-woo-wallet-frontend.php: Shortcodes and checkout integration.includes/actions/: Logic for earning balance via site activities.templates/: UI components (Overridable via theme).
📄 License
This project is licensed under the terms found in the LICENSE file.
malsubrata/woo-wallet 适用场景与选型建议
malsubrata/woo-wallet 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 27 次下载、GitHub Stars 达 84, 最近一次更新时间为 2019 年 02 月 27 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「wordpress」 「wallet」 「wordpress-plugin」 「woocommerce-wallet」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 malsubrata/woo-wallet 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 malsubrata/woo-wallet 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 malsubrata/woo-wallet 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
The BlockTrail PHP SDK, for integration of Bitcoin functionality through the BlockTrail API
Library for validation of cryptocoin wallets
A Gutenberg like color palette field for ACF.
WordPress Plugin Framework
Helper class that lets you create options settings page securely and swiftly without dealing with WordPress Settings API.
Wordpress plugin to change its password hashing mechanism with PHP native password_* set of functions.
统计信息
- 总下载量: 27
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 85
- 点击次数: 13
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0-or-later
- 更新时间: 2019-02-27