Skip to content

Commit

Permalink
fixed issues
Browse files Browse the repository at this point in the history
  • Loading branch information
OlegPhenomenon committed Nov 2, 2023
1 parent 2390cb2 commit a0cc133
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 21 deletions.
6 changes: 3 additions & 3 deletions app/jobs/payment_lhv_connect_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def payment_process

sorted_by_ref_number = incoming_transactions.group_by { |x| x[:payment_reference_number] }
sorted_by_ref_number.each do |s|
Rails.logger.info '=========== Sending to registry ==========='
Rails.logger.info '=========== Sending transaction ==========='
Rails.logger.info s[1]
Rails.logger.info '==========================================='

Expand Down Expand Up @@ -95,15 +95,15 @@ def open_ssl_keystore
def send_transactions(params:, payment_reference_number:)
reference = Reference.find_by(reference_number: payment_reference_number)

uri = URI.parse(url[reference.initiator])
uri = URI.parse(url[reference.initiator.to_sym])
http = Net::HTTP.new(uri.host, uri.port)

unless Rails.env.development? || Rails.env.test?
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_NONE
end

res = http.post(url[reference.initiator], params.to_json, headers)
res = http.post(url[reference.initiator.to_sym], params.to_json, headers)

Rails.logger.info '>>>>>>'
Rails.logger.info res.body
Expand Down
18 changes: 0 additions & 18 deletions db/schema.rb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a0cc133

Please sign in to comment.