You are here

public function Mollie_API_Client::__construct in Commerce Mollie 7

File

Mollie/API/Client.php, line 96

Class

Mollie_API_Client
Copyright (c) 2013, Mollie B.V. All rights reserved.

Code

public function __construct() {
  $this->payments = new Mollie_API_Resource_Payments($this);
  $this->payments_refunds = new Mollie_API_Resource_Payments_Refunds($this);
  $this->issuers = new Mollie_API_Resource_Issuers($this);
  $this->methods = new Mollie_API_Resource_Methods($this);
  $curl_version = curl_version();
  $this->versionStrings = array(
    "Mollie/" . self::CLIENT_VERSION,
    "PHP/" . phpversion(),
    "cURL/" . $curl_version["version"],
    $curl_version["ssl_version"],
  );
}