This commit is contained in:
Nweni
2017-06-11 17:49:06 +06:30
parent f6d14de461
commit fc3893f048
5 changed files with 13 additions and 13 deletions

View File

@@ -11,12 +11,13 @@ Amount :
$('#mpu_pay').on('click',function(){
var amount = $('#amount').val();
var sale_id = "<%= @sale_id %>";
alert(amount);
$.ajax({type: "POST",
url: "<%= origami_create_mpu_payment_path %>",
data: "amount="+ amount + "&sale_id="+ sale_id,
success:function(result){
if(result){
alert("Payment success")
window.location.href = '/origami/sale/'+ sale_id + "/payment";
}
}

View File

@@ -0,0 +1 @@
json.status true

View File

@@ -229,7 +229,8 @@ $( document ).ready(function() {
url: "<%= origami_payment_process_path %>",
data: "cash="+ cash + "&sale_id=" + sale_id,
success:function(result){
alert("THANK YOU")
alert("Thank you")
window.location.href = '/origami';
}
});
}