paykassa 0.1.28 → 0.1.31
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 +3 -1
- data/lib/paykassa/version.rb +1 -1
- 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: f8757f8aa2ac4210f8f6a7abd17db95c834ae5c7be2513d0c0feee0050d8caf0
|
4
|
+
data.tar.gz: 9a7fd4889be52cf3796446d76d4b5b5e4675a04da1019a458aeef5408f76ea0b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7c3e5216169551f0babefe70e1514e13b1f583ecea7b1b56c5e6d96833a217b432db573bf08e8e59d22fe16f1803c58c212ec12f6812e8329e5445bedae71573
|
7
|
+
data.tar.gz: 74eee7d51e3517420ceea8abc919f38bea137d77d1c4fc79856c3dc2661e886a1138877a8d61715d0f58f0e6c4cbc18197fb496fdea36660f072544866a8b34f
|
data/lib/paykassa/order.rb
CHANGED
data/lib/paykassa/pay.rb
CHANGED
@@ -45,7 +45,7 @@ class PaykassaPay
|
|
45
45
|
priority: priority
|
46
46
|
}
|
47
47
|
@logger.info("Pay.pay with data: #{data.inspect}") unless @logger.nil?
|
48
|
-
make_request("api_payment",data)
|
48
|
+
make_request(func: "api_payment",data: data, merge_auth: true)
|
49
49
|
end
|
50
50
|
def balance(shop: )
|
51
51
|
data = {
|
@@ -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