paykassa 0.1.11 → 0.1.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/paykassa/pay.rb +2 -2
- data/lib/paykassa/version.rb +1 -1
- data/lib/paykassa.rb +2 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 26c11f0db3dfc5f18296b5b1e0c79ac355779450761e474592afd8ee2858dcea
|
4
|
+
data.tar.gz: 037fe1c05ab96dd6ebbdd375d866cd2482331e160a1c2fa925700375c565cb0f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7ad1d0361ff740429c2764e9d18ce78d3429488fd386ab6996114826687967f153e9a8349cdfefd58fd94f83fbdec7d6a7cfc20b1347267f87018c56b26679bd
|
7
|
+
data.tar.gz: c597e77fea7f06fa07ddd4571004cb5e3c2daf63ce1cf98fb441c1e4e3b3192a84e023a6c71d6b18d5efec2f5b84e3b26c7781ec7ac2c9d4b7bdcf3ff6211ae5
|
data/lib/paykassa/pay.rb
CHANGED
@@ -49,7 +49,7 @@ class PaykassaPay
|
|
49
49
|
def balance(shop: )
|
50
50
|
data = {
|
51
51
|
shop: shop,
|
52
|
-
|
52
|
+
api_id: @_auth[:api_id],
|
53
53
|
api_key: @_auth[:api_key]
|
54
54
|
}
|
55
55
|
@logger.info("Pay.balance with data: #{data.inspect}") if !@logger.nil?
|
@@ -78,7 +78,7 @@ class PaykassaPay
|
|
78
78
|
def make_request(func,data,merge_auth = true, url= nil)
|
79
79
|
data = data.merge({func: func}) if !func.nil?
|
80
80
|
data = data.merge(@_auth) if merge_auth
|
81
|
-
url =
|
81
|
+
url = BASE_URL if url.nil?
|
82
82
|
@logger.info("private Pay.make_request with params: url: #{url.inspect}, data: #{data.inspect}") if !@logger.nil?
|
83
83
|
res = Net::HTTP.post_form(url, data)
|
84
84
|
@logger.info("private Pay.make_request: result: #{res.inspect}") if !@logger.nil?
|
data/lib/paykassa/version.rb
CHANGED
data/lib/paykassa.rb
CHANGED
@@ -7,7 +7,9 @@ module Paykassa
|
|
7
7
|
class Error < StandardError; end
|
8
8
|
class Paykassa
|
9
9
|
def initialize(domain:, sci_id:, sci_key:, api_id: nil, api_key: nil, test:, logger: nil)
|
10
|
+
|
10
11
|
@logger=logger
|
12
|
+
puts "logger paykassa: #{@logger.inspect}"
|
11
13
|
@paykassa_order = PaykassaOrder.new({domain: domain, sci_id: sci_id, sci_key: sci_key}, logger)
|
12
14
|
if api_id.nil?
|
13
15
|
@paykassa_pay = nil
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: paykassa
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.14
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- nottewae
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-05-
|
11
|
+
date: 2022-05-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: redcarpet
|