Answer the question
In order to leave comments, you need to log in
How to fix error when integrating OkPay in yii?
Given: Yii 1.0.16
Payment system OKPAY
Data comes to notification URL
In the IPN history, there are only notifications "The remote server returned an error: (401) Unauthorized"
How to fix?
$_POST array is empty
'request'=>array(
'class' => 'HttpRequest',
'enableCookieValidation'=>true,
'enableCsrfValidation'=>true,
'enableLanguage'=>true,
),
Yii::app()->request->enableCsrfValidation=false;
it, but it doesn't help.
Answer the question
In order to leave comments, you need to log in
log all inputs (post, get, server, headers) that come into the controller. In yii2, for these purposes, I overridden the method
public function beforeAction($action){
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question