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;
    }
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;
    }
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 ; }
Parse callback URL from request.

@param  array  $body
@param  array|string  $url

@return array
Parse callback URL from request .