tourze/wechat-mini-program-delivery-return-bundle
A Symfony bundle from Tourze that integrates WeChat Mini Program delivery and return flows into your PHP application, providing ready-made services and configuration for handling shipping and refund logistics. Note: low adoption and minimal community activity, so evaluate fit and maintenance before...
This package is a Laravel bundle for handling WeChat Mini Program "delivery return" (发货信息录入/退货) workflows — i.e., reporting shipment and return logistics information back to WeChat's Mini Program API. Start by requiring it via Composer and checking for a published config file:
composer require tourze/wechat-mini-program-delivery-return-bundle
php artisan vendor:publish --tag=wechat-mini-program-delivery-return-config
Then look first at:
config/wechat-mini-program-delivery-return.php (if published) — for app ID / secret / API credentials.Service classes under src/ — these wrap the WeChat endpoints for uploading shipping and return-logistics info.Minimal first use case: after a customer places an order in your Mini Program and you ship it, call the bundle's shipping-info service with the order ID, logistics company code, and tracking number, so WeChat can display delivery status in the user's order list and satisfy its "发货信息管理" compliance requirement.
Order moves to shipped or returned. Dispatch the WeChat upload from a domain event listener (OrderShipped, ReturnApproved) so the API call is decoupled from the request cycle and can be retried by a queue worker.config/ backed by env vars; use separate WeChat sandbox or test accounts for staging so you don't pollute production order data.debug in development and info/warning in production — WeChat error codes are terse and you'll want the response body when diagnosing.composer.json, read the GitHub compare diff before upgrading, and check whether service class names, method signatures, or config keys changed.40013/40125 errors.errcode in the body. Check the business error code, not just the HTTP status.How can I help you explore Laravel packages today?