Integration and Testing

Authorize.Net API questions and help with your payment integration.

Posts: 1
Registered: ‎06-22-2017

Cannot declare class error using CIM

CIM custom integration


Recently updated the site framework for Code Ignitor version 4 on the website. 


When a new credit card is being added via the website which creates a new user profile/payment profile the a purchase is attempted this error is showing:


Cannot declare class App\Libraries\AuthorizeNet\shared\AuthorizeNetPaymentProfile, because the name is already in use in /var/www/html/app/Libraries/AuthorizeNet/shared/AuthorizeNetTransaction.php on line 61


The profile is created and card is stored. It only occurs when that initial new card is added for transaction. Once the card is added to the profile transactions are successful. 

Thanks for any input. Have a great day.