Hi:
I have been using the Authorize.net API for a payment gateway for a number of years and have not had a problem. Recently, I upgraded my development machine (MacBook Pro) with a new SSD hard drive which required re-installing the web server (XAMPP). All of the domains on the server work fine but the Authorize.net toolkit is not functioning.
I am pretty sure I have tracked it to the following code:
<?php
require 'anet_sdk/autoload.php';
use net\authorize\api\contract\v1 as AnetAPI;
use net\authorize\api\controller as AnetController;
//define("AUTHORIZENET_LOG_FILE", "phplog");
$customerProfileId = $anet_profile_id;
$customerPaymentProfileId = $anet_payment_profile;
// Common setup for API credentials (merchant)
$merchantAuthentication = new AnetAPI\MerchantAuthenticationType();
[rest of script]
The "$merchantAuthentication = ..." line is causing the script to fail with no errors. The page just terminates at that point.
The script works fine on the production server and the code has not changed on the development server.
Can someone suggest what I should be looking for to identify the cause?
Thanks