File: cybersource/rest-client-php/lib/ApiClient.php
Function: getClientId()
This code has hardcoded "vendor" dir name, but composer has the ability to override it with vendor-dir directive, and when it happens, lib will stop working rendering file not found message. Also, what if I do not use composer?
$packages = json_decode(file_get_contents(DIR . "/../../../../vendor/composer/installed.json"), true);
proper code (does not go outside of the "vendor" folder):
$packages = json_decode(file_get_contents(DIR . "/../../../composer/installed.json"), true);