вот кусок кода где возникает ошибка
url: '<?php echo $store_url; ?>admin/index.php?route=<?php echo $prefix;?>payment/yandex_money/sendmail&token=<?php echo $token; ?>&order_id=' + node.dataset.order_id,
dataType: 'json',
crossDomain: true,
beforeSend: function() {
jQuery(node).button('loading');
},
complete: function() {
jQuery(node).button('reset');
},
success: function(json_main) {
jQuery('.alert').remove();
if (json_main['error']) {
$('#content > .container-fluid').prepend('<div class="alert alert-danger"><i class="fa fa-exclamation-circle"></i> ' + json_main['error'] + ' <button type="button" class="close" data-dismiss="alert">×</button></div>');
}
if (json_main['success']) {
$('#content > .container-fluid').prepend('<div class="alert alert-success"><i class="fa fa-check-circle"></i> ' + json_main['success'] + ' <button type="button" class="close" data-dismiss="alert">×</button></div>');
var token = '';
$.ajax({
url: '<?php echo $store_url; ?>index.php?route=api/login',
type: 'post',
data: 'key=<?php echo $api_key; ?>',
dataType: 'json',
crossDomain: true,
success: function(json) {
if (json['error']) {
if (json['error']['key']) {
$('#content > .container-fluid').prepend('<div class="alert alert-danger"><i class="fa fa-exclamation-circle"></i> ' + json['error']['key'] + ' <button type="button" class="close" data-dismiss="alert">×</button></div>');
}
if (json['error']['ip']) {
$('#content > .container-fluid').prepend('<div class="alert alert-danger"><i class="fa fa-exclamation-circle"></i> ' + json['error']['ip'] + ' <button type="button" id="button-ip-add" data-loading-text="<?php echo $text_loading; ?>" class="btn btn-danger btn-xs pull-right"><i class="fa fa-plus"></i> <?php echo $button_ip_add; ?></button></div>');
}
}
if (json['token']) {
token = json['token'];
$.ajax({