Files
sx-fc/app/views/origami/others_payments/index.html.erb
2017-06-11 15:52:13 +06:30

26 lines
691 B
Plaintext

<div class="row">
<div class="col-lg-5 col-md-5 col-sm-3">
<div >
<% @payment_method_setting.each do |payment_method|%>
<div class="col-md-5">
<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 %>
</div>
</div>
</div>
<div class="row">
</div>
<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;
});
</script>