check JunctionPay
This commit is contained in:
@@ -28,6 +28,13 @@ App.order_reservation = App.cable.subscriptions.create('OrderReservationChannel'
|
||||
delivery_type = "DIRECT DELIVERY";
|
||||
}
|
||||
|
||||
var payment_type = "";
|
||||
if(value.payment_type=="cash_on_delivery"){
|
||||
payment_type = "COD";
|
||||
}else if(value.payment_type =="dinga"){
|
||||
payment_type = "DINGA";
|
||||
}
|
||||
|
||||
if(key==0){
|
||||
var order_id = value.order_reservation_id;
|
||||
var sr_no = rowCount;
|
||||
@@ -49,11 +56,13 @@ App.order_reservation = App.cable.subscriptions.create('OrderReservationChannel'
|
||||
+'</td>'
|
||||
+'<td width ="20%" class="align-center">'+created_at
|
||||
+'</td>'
|
||||
+'<td width ="20%" class="align-center">'+time
|
||||
+'<td width ="15%" class="align-center">'+time
|
||||
+'</td>'
|
||||
+'<td width ="20%" class="align-center">'+value.grand_total
|
||||
+'</td>'
|
||||
+'<td width ="30%" class="align-center">'
|
||||
+'<td width ="20%" class="align-center col-blue">'+payment_type
|
||||
+'</td>'
|
||||
+'<td width ="20%" class="align-center">'
|
||||
+'<span class="font-10 col-blue">'+ delivery_type +'</span>'
|
||||
+'</td>'
|
||||
+' </tr>';
|
||||
|
||||
@@ -359,7 +359,12 @@ function show_order_detail(url,sr_no){
|
||||
$('#address').text(address);
|
||||
|
||||
$(".order_payment_type").show();
|
||||
$("#payment_type").text(data.payment_type);
|
||||
if(data.payment_type == "cash_on_delivery"){
|
||||
$("#payment_type").text("COD");
|
||||
}else if(data.payment_type == "dinga"){
|
||||
$("#payment_type").text("DINGA");
|
||||
}
|
||||
|
||||
$('#ref_no').text(data.transaction_ref);
|
||||
$('#callback_url').text(data.callback_url);
|
||||
$('#order_id').text(data.order_reservation_id);
|
||||
|
||||
Reference in New Issue
Block a user