У меня другой тип ответа, и, к сожалению, я не могу изменить ответ, поэтому я могу получить доступ только при успешном использовании ajax.
{"message":"Request completed","status":1}{"coin_message":"Thank You! Your....."}
Следуя сценарию, который я пробовал до сих пор, но все равно не смог получить к нему доступ
success: function(response){
if(response.coin_message){
$('#response-from-controller-coin-payment').append('<div class="coin_messages alert alert-success" role="alert">'+response.coin_message+'</div>');
}
if(response.amount){
$('#response-from-controller-coin-payment').append('<div class="coin_messages alert alert-danger" role="alert">'+response.amount+'</div>');
}
if(response.currency){
$('#response-from-controller-coin-payment').append('<div class="coin_messages alert alert-danger" role="alert">'+response.currency+'</div>');
}
}
Может ли кто-нибудь помочь мне, как я могу получить доступ к ответу, я был бы признателен. Большое вам спасибо.