Download the PHP package tourze/wechat-pay-score-bundle without Composer
On this page you can find all versions of the php package tourze/wechat-pay-score-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package wechat-pay-score-bundle
wechat-pay-score-bundle
中文
WeChat Pay Score Symfony Bundle for integrating WeChat Pay Score services, supporting create, query, complete, and cancel Pay Score orders.
Table of Contents
- Quick Start
- Installation
- 1. Register Bundle
- 2. Database Configuration
- 3. Basic Usage
- Features
- Core Components
- Entities
- Enums
- Services
- Events
- Configuration Examples
- Entity Relationship Configuration
- Event Listener Configuration
- API Reference
- Order States
- Callback Interface
- Requirements
- Advanced Usage
- Custom Event Listeners
- Order State Management
- Post-Payment and Discount Configuration
- Testing
- Documentation
- License
Quick Start
Installation
1. Register Bundle
Add to config/bundles.php:
2. Database Configuration
Run migrations to create necessary tables:
3. Basic Usage
Features
- 🎯 Pay Score Order Management - Support create, query, complete, and cancel Pay Score orders
- 📊 Order Status Tracking - Complete order status management (Created, Doing, Done, Revoked, Expired)
- 💰 Payment Handling - Support post-payment and discount information management
- 🔔 Callback Processing - Built-in callback controller for WeChat Pay Score notifications
- 📱 Mini Program Support - Support jumping to WeChat Mini Program for Pay Score operations
- 🔒 Security & Reliability - Integrated with WeChat Pay official SDK for secure transactions
Core Components
Entities
ScoreOrder- Pay Score order entityPostPayment- Post-payment information entityPostDiscount- Discount information entity
Enums
ScoreOrderState- Order state enumeration
Services
AttributeControllerLoader- Attribute controller loaderCallbackController- Callback processing controller
Events
ScoreOrderCallbackEvent- Pay Score order callback eventScoreOrderListener- Pay Score order event listener
Configuration Examples
Entity Relationship Configuration
Event Listener Configuration
API Reference
Order States
| State | Description |
|---|---|
CREATED |
Created |
DOING |
In Progress |
DONE |
Completed |
REVOKED |
Cancelled |
EXPIRED |
Expired |
Callback Interface
The system automatically registers callback route: /wechat-pay-score/callback
Requirements
- PHP 8.1+
- Symfony 6.4+
- Doctrine ORM 3.0+
- WeChat Pay Official SDK
Advanced Usage
Custom Event Listeners
Order State Management
Post-Payment and Discount Configuration
Testing
Documentation
- [WeChat Pay Score API Documentation] (https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter6_1_1.shtml)
- [WeChat Pay Score Business Introduction] (https://pay.weixin.qq.com/wiki/doc/apiv3/open/pay/chapter2_8.shtml)
- [Symfony Bundle Development Guide] (https://symfony.com/doc/current/bundles.html)
License
MIT License. See LICENSE file for details.
All versions of wechat-pay-score-bundle with dependencies
PHP Build Version
Package Version
Requires
ext-json Version
*
doctrine/collections Version ^2.3
doctrine/dbal Version ^4.0
doctrine/doctrine-bundle Version ^2.13
doctrine/orm Version ^3.0
doctrine/persistence Version ^4.1
easycorp/easyadmin-bundle Version ^4
knplabs/knp-menu Version ^3.7
monolog/monolog Version ^3.1
psr/http-message Version ^1.1 || ^2.0
psr/log Version ^3|^2|^1
symfony/config Version ^7.3
symfony/dependency-injection Version ^7.3
symfony/doctrine-bridge Version ^7.3
symfony/event-dispatcher Version ^7.3
symfony/event-dispatcher-contracts Version ^3
symfony/framework-bundle Version ^7.4
symfony/http-foundation Version ^7.4
symfony/http-kernel Version ^7.3
symfony/property-access Version ^7.3
symfony/routing Version ^7.3
symfony/yaml Version ^7.3
tourze/arrayable Version 1.*
tourze/bundle-dependency Version 1.*
tourze/doctrine-snowflake-bundle Version 1.1.*
tourze/doctrine-timestamp-bundle Version 1.1.*
tourze/doctrine-user-bundle Version 1.0.*
tourze/easy-admin-enum-field-bundle Version 1.0.*
tourze/easy-admin-menu-bundle Version 1.0.*
tourze/enum-extra Version 1.0.*
tourze/symfony-dependency-service-loader Version 1.0.*
tourze/symfony-routing-auto-loader-bundle Version 1.0.*
tourze/wechat-pay-bundle Version 0.1.*
wechatpay/wechatpay Version ^1.4
yiisoft/json Version ^1.0
doctrine/collections Version ^2.3
doctrine/dbal Version ^4.0
doctrine/doctrine-bundle Version ^2.13
doctrine/orm Version ^3.0
doctrine/persistence Version ^4.1
easycorp/easyadmin-bundle Version ^4
knplabs/knp-menu Version ^3.7
monolog/monolog Version ^3.1
psr/http-message Version ^1.1 || ^2.0
psr/log Version ^3|^2|^1
symfony/config Version ^7.3
symfony/dependency-injection Version ^7.3
symfony/doctrine-bridge Version ^7.3
symfony/event-dispatcher Version ^7.3
symfony/event-dispatcher-contracts Version ^3
symfony/framework-bundle Version ^7.4
symfony/http-foundation Version ^7.4
symfony/http-kernel Version ^7.3
symfony/property-access Version ^7.3
symfony/routing Version ^7.3
symfony/yaml Version ^7.3
tourze/arrayable Version 1.*
tourze/bundle-dependency Version 1.*
tourze/doctrine-snowflake-bundle Version 1.1.*
tourze/doctrine-timestamp-bundle Version 1.1.*
tourze/doctrine-user-bundle Version 1.0.*
tourze/easy-admin-enum-field-bundle Version 1.0.*
tourze/easy-admin-menu-bundle Version 1.0.*
tourze/enum-extra Version 1.0.*
tourze/symfony-dependency-service-loader Version 1.0.*
tourze/symfony-routing-auto-loader-bundle Version 1.0.*
tourze/wechat-pay-bundle Version 0.1.*
wechatpay/wechatpay Version ^1.4
yiisoft/json Version ^1.0
The package tourze/wechat-pay-score-bundle contains the following files
Loading the files please wait ...