settings = get_option('woocommerce_ada_payment_settings'); } public function defaultHeaders(): array { return [ 'X-CoinAPI-Key' => !!$this->settings ? $this->settings['coinApiKey'] : null, ]; } /** * The endpoint for the request */ public function resolveEndpoint(): string { return 'https://rest.coinapi.io/v1/exchangerate/' . $this->base . '/' . $this->quote; } }