INSERT INTO `payment_gateways` (`sort_id`, `name`, `alias`, `logo`, `fees`, `charge_currency`, `charge_rate`, `credentials`, `parameters`, `is_manual`, `instructions`, `mode`, `status`) 
SELECT 12, 'Yookassa', 'yookassa', 'images/payment-gateways/yookassa.png', 0, NULL, NULL, '{\"shop_id\":null,\"secret_key\":null}', '[{\"type\": \"event\", \"label\": \"Webhook Event\", \"content\": \"payment.succeeded\"},{\"type\": \"route\", \"label\": \"Webhook Endpoint\", \"content\": \"payments/webhooks/yookassa\"}]', 0, NULL, NULL, 0
FROM DUAL
WHERE NOT EXISTS (
    SELECT 1 
    FROM `payment_gateways` 
    WHERE `alias` = 'yookassa'
);
