webtechnick / CakePHP-Paypal-IPN-Plugin

CakePHP Paypal Instant Payment Notification Plugin
http://www.webtechnick.com
82 stars 47 forks source link

Fatal error: PaypalIpnConfig: The configuration could not be loaded. #9

Closed ankith83 closed 10 years ago

ankith83 commented 11 years ago

Hi, I did every thing mentioned in the documentation, but I am getting Fatal error. Is this plugin built for CakePHP2.x? Attached is the screen capture.

capture

webtechnick commented 11 years ago

Master branch is 2.x compliant. Make sure you have your paypal_ipn_config.php file in app/Config and it matches the default (provided in the plugin) in terms of keys.

ankith83 commented 10 years ago

I did that, I made changes to the default paypal_ipn_config.php and copied it to app/Config. The error changed to Fatal error: Class 'PaypalIpnConfig' not found in .........\app\Plugin\PaypalIpn\View\Helper\PaypalHelper.php on line 20.

paypal_ipn_config

error

webtechnick commented 10 years ago

Are you still having this issue? Does your paypal_ipn_config.php define the PaypalIpnConfig class as it should?

I'm a little puzzled, by the error message. line 20 of the helper is a comment.

https://github.com/webtechnick/CakePHP-Paypal-IPN-Plugin/blob/master/View/Helper/PaypalHelper.php#L20

I'm guessing you're not running the current master branch of this repo.

ankith83 commented 10 years ago

Thanks Nick,

I downloaded the latest copy and it worked well. Is there a way to set the cancel url in this plugin?

ankith83 commented 10 years ago

I added below to the array list in $this->Paypal->button

"cancel_return"=>"http://www.example.com"

This worked like charm. I will strongly recommend this plugin to other cakephp folks.

Thanks mate.

webtechnick commented 10 years ago

Thanks! If you want, go ahead and add "cancel_return" to the config default and make a pull request. I'll be sure to add it. :-)