Download the PHP package tourze/wechat-pay-bundle without Composer
On this page you can find all versions of the php package tourze/wechat-pay-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package wechat-pay-bundle
WeChat Pay Bundle
中文
WeChat Pay integration for Symfony applications, providing payment order management, refund processing, and automated bill synchronization.
Table of Contents
- Features
- Installation
- Configuration
- Console Commands
- Entities
- Services
- Usage Example
- Advanced Usage
- Development Guide
- Dependencies
- Contributing
- License
Features
- WeChat Pay order creation and management
- Refund order processing
- Automated bill downloading
- Order status synchronization
- Multi-merchant support
- Payment callback handling
Installation
Configuration
Register the bundle in your Symfony application:
Console Commands
Download Fund Flow Bill
Downloads WeChat Pay fund flow bills. Runs automatically at 10:00 and 11:00 daily, fetching the last 7 days of fund statements.
Download Trade Bill
Downloads WeChat Pay trade bills. Runs automatically at 10:00 and 11:00 daily, fetching the last 7 days of transaction records.
Check Order Expiration
Checks and updates expired payment orders. Runs every minute to query orders that have expired but are still in INIT status.
Check Refund Status
Checks and updates refund order status. Runs every minute to query refunds in PROCESSING status and update their actual status.
Entities
PayOrder- Payment order entity with order managementRefundOrder- Refund order entity with goods detail supportRefundGoodsDetail- Refund goods detail entityMerchant- Merchant configuration entityTradeBill- Trade bill record entityFundFlowBill- Fund flow bill record entity
Enums
PayOrderStatus- Payment order status enumerationAccountType- WeChat Pay account type enumerationBillType- Bill type enumeration
Services
UnifiedOrder- Creates payment orders for various trade typesWechatAppPayService- Handles APP payment order creationWechatJsApiPayService- Handles JSAPI payment order creationWechatPayBuilder- Builds WeChat Pay API clientsAttributeControllerLoader- Loads controller attributes for routing
Usage Example
Advanced Usage
Custom Payment Processing
Handling Payment Callbacks
Multi-Merchant Configuration
Development Guide
Database Migrations
Use Doctrine migrations to manage database schema:
Testing
Run unit tests:
Events
This bundle provides the following events:
AppPayCallbackSuccessEvent- Triggered after successful APP payment callbackJSAPIPayCallbackSuccessEvent- Triggered after successful JSAPI payment callbackNativePayCallbackSuccessEvent- Triggered after successful Native payment callback
Entity Listeners
PayOrderListener- Handles payment order lifecycle eventsRefundOrderListener- Handles refund order lifecycle events
Dependencies
This bundle requires the following packages:
Core Dependencies
php: ^8.1symfony/framework-bundle: ^7.3doctrine/orm: ^3.0wechatpay/wechatpay: ^1.4nesbot/carbon: ^2.72 || ^3league/flysystem: ^3.10yiisoft/json: ^1.0yiisoft/arrays: ^3
Tourze Internal Dependencies
tourze/doctrine-snowflake-bundle: 0.1.*tourze/symfony-snowflake-bundle: 0.0.*tourze/http-client-bundle: 0.1.*tourze/symfony-cron-job-bundle: 0.1.*tourze/doctrine-timestamp-bundle: 0.0.*tourze/doctrine-track-bundle: 0.1.*tourze/enum-extra: 0.1.*tourze/file-storage-bundle: 0.0.*tourze/xml-helper: 0.0.*
Contributing
We welcome Pull Requests and Issues. Please ensure:
- Follow PSR-12 coding standards
- Add appropriate unit tests
- Update relevant documentation
License
This bundle is part of the Tourze monorepo project.
All versions of wechat-pay-bundle with dependencies
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
league/flysystem Version ^3.10
monolog/monolog Version ^3.1
nesbot/carbon Version ^2.72 || ^3
psr/http-message Version ^1.1 || ^2.0
psr/log Version ^3|^2|^1
symfony/config Version ^7.3
symfony/console 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/form Version ^7.3
symfony/framework-bundle Version ^7.4
symfony/http-client-contracts Version ^3.6
symfony/http-foundation Version ^7.4
symfony/http-kernel Version ^7.3
symfony/lock Version ^7.3
symfony/property-access Version ^7.3
symfony/routing Version ^7.3
symfony/serializer Version ^7.3
symfony/yaml Version ^7.3
tourze/bacon-qr-code-bundle Version 0.1.*
tourze/bundle-dependency Version 1.*
tourze/doctrine-indexed-bundle Version 1.0.*
tourze/doctrine-ip-bundle Version 1.1.*
tourze/doctrine-snowflake-bundle Version 1.1.*
tourze/doctrine-timestamp-bundle Version 1.1.*
tourze/doctrine-track-bundle Version 1.1.*
tourze/doctrine-user-bundle Version 1.0.*
tourze/easy-admin-menu-bundle Version 1.0.*
tourze/enum-extra Version 1.0.*
tourze/file-storage-bundle Version 1.1.*
tourze/http-client-bundle Version 1.1.*
tourze/symfony-cron-job-bundle Version 1.1.*
tourze/symfony-routing-auto-loader-bundle Version 1.0.*
tourze/symfony-snowflake-bundle Version 1.0.*
tourze/xml-helper Version 0.0.*
wechatpay/wechatpay Version ^1.4
yiisoft/arrays Version ^3
yiisoft/json Version ^1.0