03-23-2020 09:52 AM
I've got the SDK installed via Composer and here is the path:
I'm loading it like this:
There are no load errors and I checked by changing "vendor" to "vendors" and it gave an error.
So now I'm trying to set the API credentials as per https://github.com/AuthorizeNet/sdk-php like so:
use net\authorize\api\contract\v1 as AnetAPI;
but when I test the page I get this:
Parse error: syntax error, unexpected 'use' (T_USE) in /path/to/file/file.php on line 209
Any thoughts are greatly appreciated.