Answer the question
In order to leave comments, you need to log in
How to fix err_access in LiqPay?
Good day! I make a request for liqpay as shown in the documentation with my public and private keys, but the problem is that the result comes with an "err_access" error. Help. Thanks
$fake_params = [
'action' => 'pay',
'version' => 3,
'public_key' => 'i88077466459',
'sandbox' => '1',
'phone' => '+380950000001',
'amount' => 1,
'currency' => 'USD',
'description' => 'description text',
'order_id' => 'order_id_1',
'card' => '4731195301524634',
'card_exp_month' => '03',
'card_exp_year' => '22',
'card_cvv' => '111',
'ip' => Yii::$app->request->getUserIP()
];
$liqpay = new \LiqPay('i88077466459', 'wR2rIjUhIQpZO5ro57eKimWX03LZwnhAJklYqndg');
echo '<pre>';
var_dump($liqpay->api('request', $fake_params));
echo '<pre>';
die;
stdClass Object
(
[result] => ok
[status] => error
[err_code] => err_access
[err_description] => err access
)
Answer the question
In order to leave comments, you need to log in
Faced the same problem. As the liqpay support answered (by the way, I recommend writing to them in the dialogue on the site, because they didn’t answer me by mail) - in order to use this method, you must have a PCI DSS certificate. In short, this certificate confirms that you can safely store other people's bank card passwords on your server. And this certificate is not so easy to get.
Therefore, liqpay recommends using a different method. In this case, an iframe from liqpay will be loaded on your site and you will no longer have access to the client's card data.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question