diff --git a/modules/gateways/xendit/lib/PaymentLink.php b/modules/gateways/xendit/lib/PaymentLink.php index f5c3376..f606981 100644 --- a/modules/gateways/xendit/lib/PaymentLink.php +++ b/modules/gateways/xendit/lib/PaymentLink.php @@ -62,7 +62,7 @@ protected function invoiceUrl($invoiceId, string $systemurl): string */ protected function isRefererUrlFromCart(): bool { - if(!$this->isViewInvoicePage() || empty($_SERVER) || empty($_SERVER["HTTP_REFERER"])){ + if (!$this->isViewInvoicePage() || empty($_SERVER) || empty($_SERVER["HTTP_REFERER"])) { return false; } @@ -75,7 +75,7 @@ protected function isRefererUrlFromCart(): bool */ protected function isViewInvoicePage(): bool { - if(empty($_SERVER) || empty($_SERVER["SCRIPT_NAME"])){ + if (empty($_SERVER) || empty($_SERVER["SCRIPT_NAME"])) { return false; }