/home/kueuepay/www/vendor/spatie/flare-client-php/src/FlareMiddleware/CensorRequestHeaders.php
<?php

namespace Spatie\FlareClient\FlareMiddleware;

use Spatie\FlareClient\Report;

class CensorRequestHeaders implements FlareMiddleware
{
    protected array $headers = [];

    public function __construct(array $headers)
    {
        $this->headers = $headers;
    }

    public function handle(Report $report, $next)
    {
        $context = $report->allContext();

        foreach ($this->headers as $header) {
            $header = strtolower($header);

            if (isset($context['headers'][$header])) {
                $context['headers'][$header] = '<CENSORED>';
            }
        }

        $report->userProvidedContext($context);

        return $next($report);
    }
}
Prerequisites

Prerequisites

Before you begin integrating the Kueue Pay Developer API, make sure you have:

  1. An active Kueue Pay merchant account.
  2. Basic knowledge of API integration and web development with PHP & Laravel.
  3. A secure and accessible web server to handle API requests.