sample-code-php icon indicating copy to clipboard operation
sample-code-php copied to clipboard

After upgrading from 1.9.9 to ^2.x having "className" not found during the class mapping

Open localpath opened this issue 2 years ago • 0 comments

ErrorException: Attempt to read property "className" on null

/var/www/giving/vendor/authorizenet/authorizenet/lib/net/authorize/api/contract/v1/ARBSubscriptionType.php:295
/var/www/giving/vendor/authorizenet/authorizenet/lib/net/authorize/api/controller/base/ApiOperationBase.php:138
/var/www/giving/vendor/authorizenet/authorizenet/lib/net/authorize/api/controller/base/ApiOperationBase.php:104
/var/www/giving/app/Subscription.php:393

The only thing I see different in our code for setting up ARB is we're passing the OrderType class with

$orderInfo = new AnetAPI\OrderType();
$orderInfo->setInvoiceNumber($details['id']);

Thanks for any insight. The rest of the SDK seems to work with how we we're using it.

localpath avatar Apr 05 '22 17:04 localpath