Remove unnecessary comments

This commit is contained in:
Maciej Szlosarczyk 2018-04-23 14:23:42 +03:00
parent 33a6971c37
commit b56fd73c92
No known key found for this signature in database
GPG key ID: 41D62D42D3B0D765
5 changed files with 0 additions and 33 deletions

View file

@ -10,7 +10,6 @@ module Payments
base_json[:nonce] = SecureRandom.hex(15)
hmac_fields = (base_json.keys + ['hmac_fields']).sort.uniq!
# Not all requests require use of hmac_fields, add only when needed
base_json[:hmac_fields] = hmac_fields.join(',')
hmac_string = hmac_fields.map { |key, _v| "#{key}=#{base_json[key]}" }.join('&')
hmac = OpenSSL::HMAC.hexdigest('sha1', KEY, hmac_string)

View file

@ -1,19 +0,0 @@
.row
.col-md-12
%h4= "Credit card payment successful"
%hr
%dl.dl-horizontal
%dt= t(:invoice)
%dd= @invoice.reference_no
%dt= "Card Type"
%dd= params['cc_type'].humanize
%dt= "Card Holder"
%dd= params['cc_holder_name']
%dt= "Card Last four digits"
%dd= params['cc_last_four_digits']
%dt= "Valid thru"
%dd= "#{params['cc_month']}/#{params['cc_year']}"

View file

@ -1,4 +0,0 @@
= form_tag "https://igw-demo.every-pay.com/transactions/", method: :post do
- @every_pay.keys.each do |k, v|
= hidden_field_tag(k, @every_pay[k])
= submit_tag t("registrar.invoices.to_card_payment")

View file

@ -1,7 +0,0 @@
%h4= t('registrar.invoices.pay_by_credit_card')
- @every_pay = EveryPayPayment.new(@invoice).json
%hr
= form_tag "https://igw-demo.every-pay.com/transactions/", method: :post do
- @every_pay.keys.each do |k, v|
= hidden_field_tag(k, @every_pay[k])
= submit_tag t("registrar.invoices.to_card_payment")

View file

@ -91,8 +91,6 @@ Rails.application.routes.draw do
end
end
# TODO: refactor routes to be restful
get 'pay/return/:bank' => 'payments#back', as: 'return_payment_with'
post 'pay/return/:bank' => 'payments#back'
put 'pay/return/:bank' => 'payments#back'