Credit card issue

when migrating, have you encountered many errors? I have followed the php example and the readne file exactly. I keep getting stuck with this error…

Fatal error : Uncaught TypeError: Argument 1 passed to Square\ApiHelper::appendUrlWithTemplateParameters() must be of the type string, null given, called in D:\vhosts\nac-issa.org\httpdocs\SquareEcom\vendor\square\square\src\SquareClient.php on line 304 and defined in D:\vhosts\nac-issa.org\httpdocs\SquareEcom\vendor\square\square\src\ApiHelper.php:47 Stack trace: #0 D:\vhosts\nac-issa.org\httpdocs\SquareEcom\vendor\square\square\src\SquareClient.php(304): Square\ApiHelper::appendUrlWithTemplateParameters() #1 D:\vhosts\nac-issa.org\httpdocs\SquareEcom\vendor\square\square\src\Apis\LocationsApi.php(176): Square\SquareClient->getBaseUri() #2 D:\vhosts\nac-issa.org\httpdocs\SquareEcom\utils\location-info.php(34): Square\Apis\LocationsApi->retrieveLocation() #3 D:\vhosts\nac-issa.org\httpdocs\SquareEcom\utils\location-info.php(60): LocationInfo->__construct() #4 D:\vhosts\nac-issa.org\httpdocs\SquareEcom\index.php(3): include(‘D:\vhosts\nac-i…’) #5 {main} thrown in D:\vhosts\nac-issa.org\httpdocs\SquareEcom\vendor\square\square\src\ApiHelper.php on line 47