let payments_name = [];
$.each(payments,function(key,data) {
$.each(data, function(index,value) {
if (index == 'name') {
payments_name.push(value);
}
});
});
console.log(payments_name);
let payments_name = [];
payments_name.push("Перевод", "Наличные", "Терминал");
console.log(payments_name);