![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/job-board.corals.io/Corals/modules/Payment/Common/Exception/ |
<?php namespace Corals\Modules\Payment\Common\Exception; use Corals\Modules\Payment\Common\Models\WebhookCall; use Exception; class WebhookFailed extends Exception { public static function invalidEventName(WebhookCall $webhookCall) { return new static(trans('Payment::exception.webhook.invalid_event_name', ['name' => $webhookCall->id, 'eventname' => $webhookCall->eventname])); } public static function missingEventName(WebhookCall $webhookCall) { return new static(trans('Payment::exception.webhook.missing_event_name', ['arg' => $webhookCall->id])); } public function render($request) { return response(['error' => $this->getMessage()], 400); } public static function processedCall(WebhookCall $webhookCall) { return new static(trans('Payment::exception.webhook.webhook_already_mark_as_process', ['arg' => $webhookCall->id])); } }