/home/kueuepay/www/vendor/buglinjo/laravel-webp/src/Exceptions/CwebpShellExecutionFailed.php
<?php

namespace Buglinjo\LaravelWebp\Exceptions;

use Exception;
use Throwable;

class CwebpShellExecutionFailed extends Exception
{
    public function __construct(string $cmd, $output, $code = 0, Throwable $previous = null)
    {
        parent::__construct($this->makeMessage($cmd, $code, $output), $code, $previous);
    }

    /**
     * @param string $cmd
     * @param int $exitCode
     * @param $output
     * @return string
     */
    protected function makeMessage(string $cmd, int $exitCode, $output): string
    {
        return 'Image conversion to WebP using cwebp failed with error code ' . $exitCode . ".\n"
            . "This command was used to execute cwebp: \n"
            . "  " . $cmd . "\n"
            . (
            count($output)
                ? "The following output was sent to stdout: \n  " . join("\n  ", $output)
                : "No output was sent to stdout"
            );
    }
}
Authentication

Authentication

To access the Kueue Pay Developer API, you’ll need an API key. You can obtain your API key by logging in to your Kueue Pay merchant account and navigating to the API section. Collect Client ID , Secret ID & Merchant ID Carefully. Keep your API key confidential and do not share it publicly.

If you don't have any merchant account please Register to continue