Answer the question
In order to leave comments, you need to log in
How to connect liqpay on yii2?
I'm trying to connect with the ability to change the price I
downloaded the extension from this link https://github.com/delagics/yii2-liqpay , and connected
the Liqpay class There
I took the creation of the form and signature from the liqpay api
public function actionTest()
{
$liqpay = new LiqPay($public_key, $private_key);
$html = $liqpay->cnb_form(array(
'version' => '3',
'amount' => '1',
'currency' => 'USD',
'description' => 'description text',
'order_id' => 'order_id_1'
));
$liqpay = new LiqPay($public_key, $private_key);
$html = $liqpay->cnb_signature(array(
'version' => '3',
'amount' => '1',
'currency' => 'USD',
'description' => 'description text',
'order_id' => 'order_id_1'
));
return $this->render('test');
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question