request->param(); //订单信息 $order = WechatPayServiceMerchantPaymentLogic::createPayOrder($params); if (false === $order) { return $this->fail('支付订单创建失败', $params); } //支付流程 $result = WeChatPayMerchantService::wechatPayServiceMerchantAppPay($order); if (false === $result) { return $this->fail(WeChatPayMerchantService::getError(), $params); } return $this->success('', $result); } /** * @notes app支付回调 * @return \Psr\Http\Message\ResponseInterface * @throws \EasyWeChat\Kernel\Exceptions\InvalidArgumentException * @throws \EasyWeChat\Kernel\Exceptions\RuntimeException * @throws \ReflectionException * @throws \Throwable * @date 2023/2/28 14:21 */ public function notifyApp() { return (new WeChatPayMerchantService())->notify(); } }