Deletes paysystem settings
BX.ajax.runAction("sale.paysystem.settings.robokassa.delete", {});
- Возвращает
- void
<?php
class Robokassa extends Main\Engine\Controller
{
public function configureActions()
{
return [
'delete' => [
'prefilters' => [
new Sale\Controller\Engine\ActionFilter\CheckWritePermission(),
],
],
'getRegisterComponent' => [
'prefilters' => [
new Sale\Controller\Engine\ActionFilter\CheckWritePermission(),
],
],
];
}
public function deleteAction(): void
{
(new Sale\PaySystem\Robokassa\ShopSettings())->delete();
}
{
return new Main\Engine\Response\Component(
'bitrix:sale.paysystem.registration.robokassa',
'.default'
);
}
}
getRegisterComponentAction()