service = $service; } /** * @throws TransportExceptionInterface */ public function payment(Request $request): JsonResponse { $params = $request->all(); return self::success($this->service->payment($params)); } /** * @throws \Throwable */ public function notify(): JsonResponse { return $this->service->notify(); } }