PaymentService.php 437 B

123456789101112131415161718192021
  1. <?php
  2. namespace ln\services;
  3. use EasyWeChat\Payment\Notify;
  4. use EasyWeChat\Payment\Payment;
  5. use Symfony\Component\HttpFoundation\Request;
  6. class PaymentService extends Payment
  7. {
  8. public function getNotify()
  9. {
  10. $request = \request();
  11. $request = new Request($request->get(), $request->post(), [], [], [], $request->server(), $request->getContent());
  12. return new Notify($this->merchant, $request);
  13. }
  14. }