nkuht-donate/app/views/nkuht_donates/print_card_payment.html.erb

36 lines
936 B
Plaintext

<% # encoding: utf-8 %>
<%
data = action_data
@nkuht_donate = data["nkuht_donate"]
%>
<% if @nkuht_donate.donation_way == '1' %>
<form method="post" action="https://www.focas.fisc.com.tw/FOCAS_WEBPOS/online/" id='xml_forms'>
<input type="hidden" name="MerchantID" value="007774955429001">
<input type="hidden" name="TerminalID" value="90010001">
<input type="hidden" name="merID" value="77495542">
<input type="hidden" name="MerchantName" value="">
<input type="hidden" name="purchAmt" value="<%= @nkuht_donate.donation_amount %>">
<input type="hidden" name="lidm" value="<%= @nkuht_donate.donation_payment_number%>">
<input type="hidden" name="AutoCap" value="1">
<input type="hidden" name="AuthResURL" value="http://donations.nkuht.edu.tw/donate_card">
</form>
<script type="text/javascript">
document.getElementById("xml_forms").submit()
</script>
<% else %>
no data
<% end %>