all(); $payment = PaymentAction::run($action, $payment, $request); $data = new PaymentResource($payment); return $this->response->message(trans("messages.success.{$action}", ['Module' => trans('offplan::payment.name')])) ->code(204) ->data(compact('data')) ->status('success') ->url(guard_url('offplan/payment/' . $payment->getRouteKey())) ->redirect(); } catch (Exception $e) { return $this->response->message($e->getMessage()) ->code(400) ->status('error') ->url(guard_url('offplan/payment/' . $payment->getRouteKey())) ->redirect(); } } public function notify(){ } }