lokielse/omnipay-wechatpay
Omnipay WeChat Pay gateway for PHP, enabling WeChat Pay payments, refunds, and notifications through the Omnipay payment abstraction. Easy to integrate into Laravel and other PHP applications with a consistent API for online transactions.
Omnipay::create('WechatPay') with purchase(), completePurchase(), refund(), and query(). It slots in cleanly as an infrastructure adapter beneath a domain-level payment service, but it brings no Laravel service provider, config file, migration, facade, or webhook route. All Laravel glue is yours to write (the laravel-omnipay wrappers are equally stale).league/omnipay and symfony/* constraints, plus PHP 8 deprecations and simplexml hardening work in a small private fork.PaymentGateway interface in your domain (create charge, verify callback, refund, query) and treat Omnipay + this driver as one swappable implementation. This preserves optionality if you later migrate to wechatpay/wechatpay (official v3 SDK) or yansongda/pay.Omnipay\WechatPay\* types in controllers or Eloquent models. (2) If you are on v3, treat this package as a reference implementation for v2 semantics and build on the official SDK instead. (3) If you already hold a v2 merchant account, this package is a legitimate shortcut to first charge.out_trade_no and return the WeChat-specified ack body — not a generic HTTP 200.How can I help you explore Laravel packages today?