./composer.path dump-autoload

and check that the namespace is correct


On 18 Aug 2014, at 13:40, Jipson Thomas <[email protected]> wrote:

> Hi Thomas,
> Thank you for your update. MY code is as follows.
> 
> The Controller function I used is
> 
> namespace App\Controller;
> use App\Controller\AppController;
> use Authorizenet\AuthorizeNetARB;
> use Cake\ORM\TableRegistry;
> use Cake\Event\Event;
> use Cake\Network\Email\Email;
> 
> public function authtest(){
>         define("AUTHORIZENET_API_LOGIN_ID", "LOGIN");
>         define("AUTHORIZENET_TRANSACTION_KEY", "KEY");
>         $subscription                          = new 
> AuthorizeNet_Subscription;
>         $subscription->name                    = "PHP Monthly Magazine";
>         $subscription->intervalLength          = "1";
>         $subscription->intervalUnit            = "months";
>         $subscription->startDate               = "2014-08-14";
>         $subscription->totalOccurrences        = "12";
>         $subscription->amount                  = "12.99";
>         $subscription->creditCardCardNumber    = "6011000000000012";
>         $subscription->creditCardExpirationDate= "2018-10";
>         $subscription->creditCardCardCode      = "123";
>         $subscription->billToFirstName         = "Rasmus";
>         $subscription->billToLastName          = "Doe";
> 
>         // Create the subscription.
>         $request         = new AuthorizeNetARB;
>         $response        = $request->createSubscription($subscription);
>         $subscription_id = $response->getSubscriptionId();
>         echo $subscription_id;exit;
>     }
> 
> Regards,
> Jipson
> 
> On Monday, 18 August 2014 10:42:08 UTC+1, Jipson Thomas wrote:
> Hi,
> Would you please tell me how we can access some 3rdpart vendor classes (Not 
> developed in a CakePHP platform) in our controller functions. For example, in 
> my cakePHP 3 website I need to integrate mandrill API and Authorize.net API, 
> I installed both through the compose of cakephp and both are downloaded to my 
> vendors folder.When I am trying to create their objects in our controller 
> action, I am getting fatal error as Class 'App\Controller\AuthorizeNet_
> Subscription' not found. I couldn't find any thing related to this on cakephp 
> documentation also. Would you please help me to solve this issue? I had 
> another post with this details, but that is not replied.
> 
> Thanks and Regards,
> Jipson
> 
> 
> https://groups.google.com/forum/#!searchin/cake-php/authorize.net/cake-php/p5XbQfJGrWg/ZTBd5b1LCUcJ
> 
> -- 
> Like Us on FaceBook https://www.facebook.com/CakePHP
> Find us on Twitter http://twitter.com/CakePHP
> 
> --- 
> You received this message because you are subscribed to the Google Groups 
> "CakePHP" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/cake-php.
> For more options, visit https://groups.google.com/d/optout.

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.

Reply via email to