S
S
Sergey2015-04-20 11:54:20
Yii
Sergey, 2015-04-20 11:54:20

How to connect yii2 with interkassa?

Guys tell me.
I connect interkassa. Problem with receiving a response.
I send a request:
_form.php

<?php $form = ActiveForm::begin([
        'method' => 'post',
        'action' => 'https://sci.interkassa.com/#/paysystem',
    ]); ?>
    <?= Html::activeTextInput($model, 'ik_co_id', [ 'name' => 'ik_co_id','value' => '11111111111111111']) ?>
    <?= Html::activeTextInput($model, 'ik_pm_no', [ 'name' => 'ik_pm_no','value' => '11111']) ?>
    <?= Html::activeTextInput($model, 'ik_am', [ 'name' => 'ik_am','value' => '100']) ?>
    <?= Html::activeTextInput($model, 'ik_cur', [ 'name' => 'ik_cur','value' => 'USD']) ?>
    <?= Html::activeTextInput($model, 'ik_desc', [ 'name' => 'ik_desc','value' => 'Description']) ?>

I do it on a test currency and made it return to me on view.php, but then I get an error
/ view
exception 'yii\base\InvalidParamException' with message 'The view file does not exist: /..../public_html/frontend/views/site/error.php' in /..../public_html/vendor/yiisoft/yii2/base/View.php:226
Stack trace:

Previous exception:
exception 'yii\web\BadRequestHttpException' with message 'Не удалось проверить переданные данные.' in /..../public_html/vendor/yiisoft/yii2/web/Controller.php:110
Stack trace:

Not all thrown off, I think that's enough.
I looked in the debugger and made a reception on:
view.php
'model' => $model,
        'attributes' => [
            'ik_co_id',
            'ik_inv_id',
            'ik_inv_st',
            'ik_inv_crt',
            'ik_inv_prc',
            'ik_pm_no',
            'ik_pw_via',
            'ik_am',
            'ik_co_rfn',
            'ik_ps_price',
            'ik_cur',
            'ik_desc',
        ],

Tell me what I do not add.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey, 2015-04-20
@alekskondr

<?= Html::activeTextInput($model, 'ik_co_id', ['class'=>'form-item req', 'value' => "{$_POST['ik_co_id']}"]) ?
> You can still try to register in the controller.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question