update dinga and paymal

This commit is contained in:
Aung Myo
2018-04-26 13:07:31 +06:30
parent 9b0a564b9a
commit 3a85481dcd
9 changed files with 42 additions and 30 deletions

View File

@@ -281,7 +281,7 @@
});
}else{
swal ( "Information" , result.message);
swal ( "Opps",result.message ,"warning" );
}
}
});
@@ -328,7 +328,6 @@
var payment_amount = parseFloat($("#used_amount").text());
setTimeout(function(){
code=getQRCode();
alert(code)
if(sale_id != 0 && code != ""){
$.ajax({
type: "POST",
@@ -345,7 +344,6 @@
url: "<%=origami_payment_paymal_path%>",
data: {payment_amount:payment_amount,membership_id:0,sale_id:sale_id,transaction_ref:data.transaction_ref,account_no:code},
success: function(result){
alert(result)
if(result.status == true){
swal({
title: "Information!",
@@ -359,7 +357,7 @@
});
}else{
swal ( "Information" , result.message);
swal ( "Opps",result.message ,"warning" );
}
}
});