However, the function CyberSource\ApiClient::getClientId assumes that packages is at the top level, which is no longer the case in the format listed above.
It fails at this line approx 155 where it tries to retrieve the property name:
if (strcmp($package['name'], "cybersource/rest-client-php") == 0)
This package assumes
vendor/composer/installed.json
is in a Composer v1 format.Here is a sample snippet of the Composer 2 version of this file:
However, the function
CyberSource\ApiClient::getClientId
assumes thatpackages
is at the top level, which is no longer the case in the format listed above.It fails at this line approx 155 where it tries to retrieve the property
name
: