Does anyone here have any experience with setting up a PayPal IPN receiver with Yii, as I’ve hit a problem that’s rather difficult to trace.
If I go to the PayPal sandbox site, and enter -any- URL on the site that uses the Yii framework, I get a “400 Bad Request” message back. If I load any file which doesn’t use the Yii framework, the IPN message is sent successfully.
I haven’t gotten very far in terms of tracing it, but if I go to the main index.php and comment out this line:
Then the IPN Simulator says the request was sent successfully. The request never reaches the controller, as any database logging calls I add on SiteController.actionPayPalIPN do not get run. Thus, the error must be occuring somewhere within the Yii Framework itself, possibly as a result of all the POST variables sent from the IPN Simulator. I’ve already checked the URL that gets invoked, and it’s exactly the same was what I enter on the tester, with no get parameters tacked on.