• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Paypal returned response giving problem


I am working on an application in which I have integrated Paypal. while returning from the paypal , I mean at success page I am getting

An Error Was Encountered
The action you have requested is not allowed.

1. My Success url is directly accessible from the url and printing "test" which is the only thing I echoed in Success function.

2. This errors only occurs while returning from paypal.

I guess this is some problem with CI_TOKEN. I tried to send the ci_token to paypal but still giving the same error.

Please help how to remove this.


it could be related to csrf protection. you should set 'csrf_exclude_uris' to exclude your page.
when the url given to paypal to post back his datas to your site is like :
then you must set
$config['csrf_protection'] = true;
$config['csrf_token_name'] = 'csrf_test_name';
$config['csrf_cookie_name'] = 'csrf_cookie_name';
$config['csrf_expire'] = 7200;
$config['csrf_regenerate'] = TRUE;
$config['csrf_exclude_uris'] = array('bank/call_autoresponse');

Only in version 2.1+ if i remember. or simply disable csrf protection

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.