paykassa 0.1.27 → 0.1.30

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: '084c9d49070ec9120ef04306a59976b865440d39c89a010a678a0a43be8a73d9'
4
- data.tar.gz: ff14b8c274ef8dd1e5fef5da08c16bf797d94256bc4ebe40b9fe32449cef2a8c
3
+ metadata.gz: 4c46b90da219c4ae6ddf696c09100c4f71e67dc2ce956597ee874183c620d3e0
4
+ data.tar.gz: 5b9133058f8de4db112eb6e35a0ac1293a27dc8838d83519d3655ad83a19d29e
5
5
  SHA512:
6
- metadata.gz: 34b8ea2a5b3052874a565531f32fb3bedb2fd69625b72ff80523047c1e8ccf46ba5030827c754acb00f7325df617d863297806f25efe5c6542863774eba8015c
7
- data.tar.gz: a34d0fc7a809919033ecb04a28f8b2a3c7f66d00916c83d0fa7b648935246cc28dee94ea75d65e07f4cc96bbb3f288f18f1ce11c70ab6a353ecf9b97740a0c3b
6
+ metadata.gz: a3ad957e40465dbc773942ea6cba69493aa6e4b3acfe3a092e3276508fe33508862c39ff55b2aa6d06a38006a60f8687f25c5f89c8c2a25fe8fddcd3276f8d18
7
+ data.tar.gz: 48c816c415c24bde4ca8e47189ad4a9d24050b0e5c236cf3e3de359d84b05c721ddfc2a61ad3e0b5c392fad4edaf8bd4c351c3707d4df4419e075630a1bb2d9e
data/lib/paykassa/pay.rb CHANGED
@@ -39,13 +39,13 @@ class PaykassaPay
39
39
  shop: shop,
40
40
  currency: currency,
41
41
  system: SYSTEM_IDS[system_name],
42
- paid_commision: paid_commision,
42
+ paid_commission: paid_commission,
43
43
  number: number,
44
44
  tag: tag,
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
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Paykassa
4
- VERSION = "0.1.27"
4
+ VERSION = "0.1.30"
5
5
  end
data/lib/paykassa.rb CHANGED
@@ -28,7 +28,7 @@ module Paykassa
28
28
  shop: shop,
29
29
  currency: currency,
30
30
  system_name: system_name,
31
- paid_commision: paid_commission,
31
+ paid_commission: paid_commission,
32
32
  number: number,
33
33
  tag: tag,
34
34
  priority: priority
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.27
4
+ version: 0.1.30
5
5
  platform: ruby
6
6
  authors:
7
7
  - nottewae