I keep getting class not found. - Class 'authnet\AuthnetWebhook' not found
I do not have composer so have simply copied the files downloaded from - https://php-download.com/package/stymiee/authnetjson
I have copied the folder stymiee under folder vendor.
I have replaced $signaturekey with original key.
Here is my code
use authnet\AuthnetWebhook as AuthnetWebhook;
require 'vendor/stymiee/authnetjson/src/autoload.php';
$headers = getallheaders();
$payload = file_get_contents("php://input");
$webhook = new AuthnetWebhook($signaturekey, $payload, $headers);
You want to swap those lines around. First, you need to require autoload file, so then you have an access to desired namespace.