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.