final protected function parseRedirectAndCallbackUrlFromRequest(array $body, $url): array
    {
        if (\is_string($url)) {
            $body['callback_url'] = $url;
        } elseif (\is_array($url)) {
            $body['callback_url'] = $url['callback_url'] ?? null;
            $body['redirect_url'] = $url['redirect_url'] ?? null;
        }

        return $body;
    }