Unable to verify your data submission.

Hi All,

I am trying to implement a payment gateway. On the Notify return URL from the gate way, it calls a specific action in my controller class to do processing.

I get an error ‘Unable to verify your data submission.’

I have read that I need to set the enableCsrfValidation to false for the specific action, but I am not sure how to do this? Any help please?

I tried this:




    public function actionNotifypayment()

    {

        $this->enableCsrfValidation = false;

        $companymodel = Company::findOne(1);

    	$companymodel->paid = 'Y';

        $companymodel->save();

    }



Now I am not getting the error anymore, but also no db updates are happening.

Any idea what I am doing wrong?

A bit more info, please:

Could you post your returnUrl?

Is the friendly-url enabled?