<?php
namespace Spatie\FlareClient;
use Spatie\Backtrace\Frame as SpatieFrame;
class Frame
{
public static function fromSpatieFrame(
SpatieFrame $frame,
): self {
return new self($frame);
}
public function __construct(
protected SpatieFrame $frame,
) {
}
public function toArray(): array
{
return [
'file' => $this->frame->file,
'line_number' => $this->frame->lineNumber,
'method' => $this->frame->method,
'class' => $this->frame->class,
'code_snippet' => $this->frame->getSnippet(30),
'arguments' => $this->frame->arguments,
'application_frame' => $this->frame->applicationFrame,
];
}
}
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.