# Having problem with PayPal integration cakephp 2.7.11

**URL:** <https://discourse.cakephp.org/t/having-problem-with-paypal-integration-cakephp-2-7-11/4367>\
**Category:** Need Help\
**Created:** [June 2, 2018, 7:04am UTC](https://discourse.cakephp.org/t/having-problem-with-paypal-integration-cakephp-2-7-11/4367 "2018-06-02T07:04:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Maan](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/maan/32/628_2.png) [@Maan](https://discourse.cakephp.org/u/Maan)\
**Post date:** [June 2, 2018, 7:04am UTC](https://discourse.cakephp.org/t/having-problem-with-paypal-integration-cakephp-2-7-11/4367/1 "2018-06-02T07:04:14Z")

</div>

i am using this Plugin [GitHub - robmcvey/cakephp-paypal: CakePHP 2.0 plugin for PayPal Website Payment Pro](https://github.com/robmcvey/cakephp-paypal)  
define properly in config\> BootStrap.php  
now i have a controller

> \<?php App::uses('Paypal', 'Paypal.Lib'); class PaymentsController extends AppController { public function subscription($Package\_id=0){ $this-\>Paypal = new Paypal(array( 'sandboxMode' =\> true, 'nvpUsername' =\> 'usmanalimaan-facilitator\_api1.outlook.com', 'nvpPassword' =\> 'PZNSBZNGH22W9YAZ', 'nvpSignature' =\> 'AIZ2ub9n5c6TJms-OCsrWqerMov5Aeql8MN80RIeS04JFO4miyVKrOAM' )); }

But when i run it i found this error  
Fatal Error  
Error: Class ‘Paypal’ not found   
File: /home/maan/public\_html/one/app/Controller/PaymentsController.php   
Line: 1346

Notice: If you want to customize this error message, create app/View/Errors/fatal\_error.ctp
