paykassa 0.1.29 → 0.1.32

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 89af5dd510f6483b3c3d5bd90f4640f69bbac425125cada5d49ff77804dc0ced
4
- data.tar.gz: f57d41fe2b0e2811e828fdbde522abe162d43c9b4e57a963b0c8e9766340ed85
3
+ metadata.gz: d7290000d94609f5f320f9c0f23a2a6d61db786ebaea587b7dbbb43f6ddc73a6
4
+ data.tar.gz: 7b9a13724c5702023d463bb20b8863b8bdb62625ef5d3e2088b3b6260294c7c9
5
5
  SHA512:
6
- metadata.gz: 991e201b757d4af00cc08f6b3b89505a567303206b1c9a14d9a8564b5df0b7be5cbf5fdf2f0b127065c8dc1567673c3f509a8ef79a91aa475e17cc387c21fec6
7
- data.tar.gz: bcd7644b0366253fddbaa8e61a1ad777dbae6b935ae8d7393243d33efb668e468038b28c258a838ea51774c84777892fafca889f4e93a32b3e02c3a06d947f0a
6
+ metadata.gz: a5ec4e91842767ac7baf0a5cf593c7a2faabcbd1bf12ef023deaeece5a75dc890466bf95eae1656f6436e9bf593c28103554b724983b99a03882c30803f03b91
7
+ data.tar.gz: 638cccf2da01dcd42662b997fd3d716d42da186359f19e27298bdbd9ce62b3f6be18b0529e875c1db83485299d122ed2169f4d89597974e2afbab044d046bbab
@@ -70,7 +70,7 @@ class PaykassaOrder
70
70
 
71
71
  # Check order status
72
72
  def confirm_order(private_hash)
73
- make_request(func: :sci_confirm_order, private_hash: private_hash)
73
+ make_request({func: :sci_confirm_order, private_hash: private_hash})
74
74
  end
75
75
 
76
76
  private
data/lib/paykassa/pay.rb CHANGED
@@ -84,9 +84,11 @@ class PaykassaPay
84
84
  data = data.merge({func: func}) if !func.nil?
85
85
  data = data.merge(@_auth) if merge_auth
86
86
  url = BASE_URL if url.nil?
87
+ puts "private Pay.make_request with params: url: #{url.inspect}, data: #{data.inspect}"
87
88
  @logger.info("private Pay.make_request with params: url: #{url.inspect}, data: #{data.inspect}") unless @logger.nil?
88
89
  res = Net::HTTP.post_form(url, data)
89
90
  @logger.info("private Pay.make_request: result: #{res.inspect}") unless @logger.nil?
91
+ puts "private Pay.make_request: result: #{res.inspect}"
90
92
  JSON.parse(res.body).deep_symbolize_keys
91
93
  end
92
94
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Paykassa
4
- VERSION = "0.1.29"
4
+ VERSION = "0.1.32"
5
5
  end
data/lib/paykassa.rb CHANGED
@@ -68,8 +68,8 @@ module Paykassa
68
68
  def confirm_order(hash:)
69
69
  result = @paykassa_order.confirm_order(hash)
70
70
  raise StandardError.new(result[:message]) if result[:error]
71
- order_id = res[:data][:order_id]
72
- amount = res[:data][:amount]
71
+ order_id = result[:data][:order_id]
72
+ amount = result[:data][:amount]
73
73
  {order_id: order_id, amount: amount}
74
74
  end
75
75
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: paykassa
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.29
4
+ version: 0.1.32
5
5
  platform: ruby
6
6
  authors:
7
7
  - nottewae