other payment
This commit is contained in:
8
app/controllers/origami/mpu_controller.rb
Normal file
8
app/controllers/origami/mpu_controller.rb
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
class Origami::MpuController < BaseOrigamiController
|
||||||
|
|
||||||
|
def index
|
||||||
|
end
|
||||||
|
|
||||||
|
def create
|
||||||
|
end
|
||||||
|
end
|
||||||
1
app/views/origami/mpu/index.html.erb
Normal file
1
app/views/origami/mpu/index.html.erb
Normal file
@@ -0,0 +1 @@
|
|||||||
|
Hello MPU
|
||||||
@@ -1,25 +1,20 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
|
|
||||||
<div class="col-lg-5 col-md-5 col-sm-3">
|
<div >
|
||||||
<div >
|
<div >
|
||||||
<% @payment_method_setting.each do |payment_method|%>
|
<% @payment_method_setting.each do |payment_method|%>
|
||||||
<div class="col-md-5">
|
<div class="purple others-payment bottom left" data-type="<%= payment_method.payment_method %>" id="<%= payment_method.payment_method %>" data-url="<%=payment_method.gateway_url%>" data-sale-id="<%= @sale_id%>"><%= payment_method.payment_method %></div>
|
||||||
|
|
||||||
<div class="purple others-payment" id="<%= payment_method.payment_method%>" data-url="<%=payment_method.gateway_url%>" data-sale-id="<%= @sale_id%>"><%= payment_method.payment_method %></div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
|
||||||
|
|
||||||
</div>
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
$('#redeem_payment').click(function() {
|
|
||||||
sale_id = $(this).attr("data-sale-id");
|
|
||||||
window.location.href = '/origami/sale/'+ sale_id + "/payment/others_payment/redeem"
|
|
||||||
return false;
|
|
||||||
});
|
|
||||||
|
|
||||||
|
$('.others-payment').on('click',function(){
|
||||||
|
var input_type = $(this).attr("data-type");
|
||||||
|
var sale_id = $(this).attr("data-sale-id");
|
||||||
|
alert(input_type)
|
||||||
|
window.location.href = '/origami/sale/'+ sale_id + "/payment/others_payment/" + input_type;
|
||||||
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -85,8 +85,9 @@ Rails.application.routes.draw do
|
|||||||
post 'paypar_payment_process' => 'paypar_payments#create'
|
post 'paypar_payment_process' => 'paypar_payments#create'
|
||||||
get 'sale/:sale_id/payment/credit_payment' => "credit_payments#index"
|
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' => "others_payments#index"
|
||||||
get 'sale/:sale_id/payment/others_payment/:payment_method' => "redeem_payments#index"
|
# get 'sale/:sale_id/payment/others_payment/:payment_method' => "redeem_payments#index"
|
||||||
|
get 'sale/:sale_id/payment/others_payment/MPU' => "mpu#index"
|
||||||
|
get 'sale/:sale_id/payment/others_payment/REDIMREBATE' => "redeem_payments#index"
|
||||||
end
|
end
|
||||||
|
|
||||||
#--------- Waiter/Ordering Station ------------#
|
#--------- Waiter/Ordering Station ------------#
|
||||||
|
|||||||
Reference in New Issue
Block a user