29 lines
630 B
PHP
29 lines
630 B
PHP
|
|
<?
|
||
|
|
|
||
|
|
namespace controller\common\payment;
|
||
|
|
|
||
|
|
use common\Payment;
|
||
|
|
use common\payment\structure\ePaymentForm;
|
||
|
|
use ms\ms\structure\msControllerTable;
|
||
|
|
|
||
|
|
class Api extends msControllerTable {
|
||
|
|
|
||
|
|
static $class = 'common\Payment';
|
||
|
|
|
||
|
|
|
||
|
|
static function getSettingsForm(){
|
||
|
|
$res = [];
|
||
|
|
if(IF_AUTH) {
|
||
|
|
$C = Payment::getByID(intval($_POST['id']));
|
||
|
|
$values = json_decode($C[Payment::$DATA],true);
|
||
|
|
$res['title'] = 'Настройки';
|
||
|
|
$res['form'] = ePaymentForm::getForm($C,['values'=>$values]);
|
||
|
|
$res['values'] = $values;
|
||
|
|
}
|
||
|
|
echo je($res);
|
||
|
|
}
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
|