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 +4 -4
- data/lib/paykassa/order.rb +1 -1
- data/lib/paykassa/pay.rb +2 -0
- data/lib/paykassa/version.rb +1 -1
- data/lib/paykassa.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d7290000d94609f5f320f9c0f23a2a6d61db786ebaea587b7dbbb43f6ddc73a6
|
4
|
+
data.tar.gz: 7b9a13724c5702023d463bb20b8863b8bdb62625ef5d3e2088b3b6260294c7c9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a5ec4e91842767ac7baf0a5cf593c7a2faabcbd1bf12ef023deaeece5a75dc890466bf95eae1656f6436e9bf593c28103554b724983b99a03882c30803f03b91
|
7
|
+
data.tar.gz: 638cccf2da01dcd42662b997fd3d716d42da186359f19e27298bdbd9ce62b3f6be18b0529e875c1db83485299d122ed2169f4d89597974e2afbab044d046bbab
|
data/lib/paykassa/order.rb
CHANGED
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
|
|
data/lib/paykassa/version.rb
CHANGED
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 =
|
72
|
-
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
|