lib/Conekta/Requestor.php
private function setHeaders()
  {
    $pluginAgent = $this->additionalPluginHeaders();
    $userAgent = array(
      'bindings_version' => Conekta::VERSION,
      'lang'             => 'php',
      'lang_version'     => phpversion(),
      'publisher'        => 'conekta',
      'uname'            => php_uname(),
      );

    if(array_filter($pluginAgent)){
      $userAgent = array_merge($userAgent, $pluginAgent);
    }
    
    $headers = array(
      'Accept: application/vnd.conekta-v'.Conekta::$apiVersion.'+json',
      'Accept-Language: '.Conekta::$locale,
      'X-Conekta-Client-User-Agent: '.json_encode($userAgent),
      'User-Agent: Conekta/v1 PhpBindings/'.Conekta::VERSION,
      'Authorization: Basic '.base64_encode($this->apiKey.':'),
      'Content-Type: application/json'
      );

    return $headers;
  }
private function setHeaders()
  {
    $pluginAgent = $this->additionalPluginHeaders();
    $userAgent = array(
      'bindings_version' => Conekta::VERSION,
      'lang'             => 'php',
      'lang_version'     => phpversion(),
      'publisher'        => 'conekta',
      'uname'            => php_uname(),
      );

    if(array_filter($pluginAgent)){
      $userAgent = array_merge($userAgent, $pluginAgent);
    }
    
    $headers = array(
      'Accept: application/vnd.conekta-v'.Conekta::$apiVersion.'+json',
      'Accept-Language: '.Conekta::$locale,
      'X-Conekta-Client-User-Agent: '.json_encode($userAgent),
      'User-Agent: Conekta/v1 PhpBindings/'.Conekta::VERSION,
      'Authorization: Basic '.base64_encode($this->apiKey.':'),
      'Content-Type: application/json'
      );

    return $headers;
  }
Function setHeaders

Set Standar headers for library

@return (array)