secretwebmaster/wncms-ecommerce
最新稳定版本:v1.0.4-alpha1
Composer 安装命令:
composer require secretwebmaster/wncms-ecommerce
包简介
E-commerce module for WNCMS, providing products, orders, transactions, payments, subscriptions, and plans management.
README 文档
README
secretwebmaster/wncms-ecommerce is a reusable WNCMS billing package for online store and SaaS scenarios.
Scope
- One-time checkout:
Order,OrderItem,Transaction - Recurring subscriptions:
Plan,Subscription, renewal orders - Payment gateway processing:
PaymentGateway+ processor classes (PayPal,Stripe,EPUSDT,ECPay)
Requirements
- Host project includes
secretwebmaster/wncms-core:^6.0 - Host project can run Laravel migrations and seeders
Installation (Fresh Install)
composer require secretwebmaster/wncms-ecommerce
php artisan vendor:publish --tag=wncms-ecommerce-config
php artisan migrate
php artisan db:seed --class="Secretwebmaster\\WncmsEcommerce\\Database\\Seeders\\PaymentGatewaySeeder"
After installation:
- confirm backend payment gateway pages load
- configure gateway credentials in backend settings
- ECPay credential mapping:
client_id=>MerchantIDclient_secret=>HashKeywebhook_secret=>HashIV
Upgrade (Existing Project)
composer update secretwebmaster/wncms-ecommerce php artisan migrate --force php artisan optimize:clear
Optional after upgrade:
php artisan db:seed --class="Secretwebmaster\\WncmsEcommerce\\Database\\Seeders\\PaymentGatewaySeeder"
See documentations/upgrade-guide.md for version-specific checks.
Commands
php artisan wncms-ecommerce:pay-order {orderSlug} {paymentGatewaySlug}
php artisan wncms-ecommerce:renew-subscriptions
php artisan wncms-ecommerce:advance-subscriptions
php artisan wncms-ecommerce:reconcile-transactions {--gateway=} {--date-from=} {--date-to=} {--json}
Testing
composer test
Documentation
CHANGELOG.mddocumentations/architecture.mddocumentations/model-reference.mddocumentations/payment-lifecycle.mddocumentations/production-readiness-design.mddocumentations/upgrade-guide.mddocumentations/release-checklist.mddocumentations/test-matrix.mddocumentations/operations-runbook.mddocumentations/to-do.md
Design Goal
Keep package logic reusable for any online store/SaaS. Project-specific tenant/domain/provision orchestration should be implemented in host project layers, not hard-coded in this package.
统计信息
- 总下载量: 8
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 5
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-01-15