meraproject/module/common/payment/controller.php
keboss-m 5c21d25d45 Initial commit: Merakomis portal, Docker stack and user-reader API.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-24 11:04:05 +03:00

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);
}
}