diff --git a/app/views/origami/mpu/index.html.erb b/app/views/origami/mpu/index.html.erb
index f082dc1a..7b483a75 100644
--- a/app/views/origami/mpu/index.html.erb
+++ b/app/views/origami/mpu/index.html.erb
@@ -13,7 +13,7 @@ Amount :
var sale_id = "<%= @sale_id %>";
$.ajax({type: "POST",
- url: "<%= origami_create_mpu_payment_path %>",
+ url: "<%= origami_payment_mpu_path %>",
data: "amount="+ amount + "&sale_id="+ sale_id,
success:function(result){
if(result){
diff --git a/app/views/origami/payments/show.html.erb b/app/views/origami/payments/show.html.erb
index e8d35206..7eb890f4 100644
--- a/app/views/origami/payments/show.html.erb
+++ b/app/views/origami/payments/show.html.erb
@@ -229,7 +229,7 @@ $( document ).ready(function() {
var card = $('#card').text();
var sale_id = $('#sale_id').text();
$.ajax({type: "POST",
- url: "<%= origami_payment_process_path %>",
+ url: "<%= origami_payment_cash_path %>",
data: "cash="+ cash + "&sale_id=" + sale_id,
success:function(result){
alert("Thank you")
diff --git a/config/routes.rb b/config/routes.rb
index ddb6e3ff..6337f4ee 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -82,17 +82,17 @@ Rails.application.routes.draw do
get "/:id/discount" => "discounts#index"
post "/:id/discount" => "discounts#create"
- get "/:id/request_bills" => "request_bills#print"
+ get "/:id/request_bills" => "request_bills#print"
#--------- Payment ------------#
get 'sale/:sale_id/payment' => 'payments#show'
- post 'payment_process' => 'payments#create'
+ post 'payment/cash' => 'payments#create'
post 'paypar_payment_process' => 'paypar_payments#create'
get 'sale/:sale_id/payment/credit_payment' => "credit_payments#index"
get 'sale/:sale_id/payment/others_payment' => "others_payments#index"
# get 'sale/:sale_id/payment/others_payment/:payment_method' => "redeem_payments#index"
get 'sale/:sale_id/payment/others_payment/MPU' => "mpu#index"
- post 'create_mpu_payment' => "mpu#create"
+ post 'payment/mpu' => "mpu#create"
get 'sale/:sale_id/payment/others_payment/REDEEMREBATE' => "redeem_payments#index"
#---------Add Customer --------------#
@@ -167,7 +167,7 @@ Rails.application.routes.draw do
resources :tax_profiles
#lookups
resources :lookups
- #orders
+ #orders
resources :orders
#cashier_terminals
resources :cashier_terminals