src/includes/classes/Core/Utils/Stripe.php
protected function exceptionError(\Throwable $Exception): Classes\Core\Error
    {
        if ($Exception instanceof StripeCardError) {
            $json  = (object) $Exception->getJsonBody();
            $error = (object) ($json->error ?? []);

            $code    = (string) ($error->code ?? 'error');
            $message = (string) ($error->message ?? '');

            if ($code && $message) { // If Stripe has given details.
                return $this->c::error('stripe-'.$code, $message, $json);
            }
        }
        if ($this->App->Config->©debug['©log']) {
            $this->c::review(vars(), 'Stripe error.', __METHOD__.'#stripe');
        }
        return $this->c::error('stripe-error', __('Processing error, please try again.'), $Exception->getMessage());
    }
protected function exceptionError(\Throwable $Exception): Classes\Core\Error
    {
        if ($Exception instanceof StripeCardError) {
            $json  = (object) $Exception->getJsonBody();
            $error = (object) ($json->error ?? []);

            $code    = (string) ($error->code ?? 'error');
            $message = (string) ($error->message ?? '');

            if ($code && $message) { // If Stripe has given details.
                return $this->c::error('stripe-'.$code, $message, $json);
            }
        }
        if ($this->App->Config->©debug['©log']) {
            $this->c::review(vars(), 'Stripe error.', __METHOD__.'#stripe');
        }
        return $this->c::error('stripe-error', __('Processing error, please try again.'), $Exception->getMessage());
    }
Exception to error.

@since 170329.13807 Stripe utils.

@param \Throwable $Exception Exception

@return Classes\Core\Error An error object instance.