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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 75f02c4a43333d9325751145b446d9adb6cb880fbb93e3560a51bd0aefcf0ec2
4
- data.tar.gz: 3e757fbb742a192907a536d18431329f8fc9095d9433f3879191925246a4ea29
3
+ metadata.gz: 26c11f0db3dfc5f18296b5b1e0c79ac355779450761e474592afd8ee2858dcea
4
+ data.tar.gz: 037fe1c05ab96dd6ebbdd375d866cd2482331e160a1c2fa925700375c565cb0f
5
5
  SHA512:
6
- metadata.gz: c20228bfb5205cef1d295268e434aca26186a38203f919d95296c0ed75a846456c32e1edaed77107c8108f1c3bc9aab0388bc575d7f24d3a11ee6f7b211d586d
7
- data.tar.gz: 41330b1ba2cab4604ca2d7a62a057c431ba4ff25a79a6d2a3f8291f76783fb4129cfb06ff1c80ace48bbd6219d8355451875c5ed3ba5fb6d11b0b147b065ae96
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
- pi_id: @_auth[:api_id],
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 = BASE_URI if url.nil?
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?
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Paykassa
4
- VERSION = "0.1.11"
4
+ VERSION = "0.1.14"
5
5
  end
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.11
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-06 00:00:00.000000000 Z
11
+ date: 2022-05-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: redcarpet