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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cb8eb336c02e3366e620d2b4d65c1abb040a8d385377578a252a2f01c682601f
4
- data.tar.gz: b35c07fe638cd419ae11afbda91fa1ae7e814ffdfacebdfe34d119009a647b06
3
+ metadata.gz: f8757f8aa2ac4210f8f6a7abd17db95c834ae5c7be2513d0c0feee0050d8caf0
4
+ data.tar.gz: 9a7fd4889be52cf3796446d76d4b5b5e4675a04da1019a458aeef5408f76ea0b
5
5
  SHA512:
6
- metadata.gz: 989e66b1bd2beb98500bdb7ea9d4a238e544ce9e0f94dc21f99904794f2398faa749869f8310083d042fea25d34178f0c96c9bf851abce2378ceab141174d74d
7
- data.tar.gz: ff6098301dc4517a34c74a0f03ee22871cc17e2d10a262634527dd97abb2ca3b877a13c2a9ff790473e3ce1be1eadb588fc1f6fba5f1e76b873f26b9513ca25e
6
+ metadata.gz: 7c3e5216169551f0babefe70e1514e13b1f583ecea7b1b56c5e6d96833a217b432db573bf08e8e59d22fe16f1803c58c212ec12f6812e8329e5445bedae71573
7
+ data.tar.gz: 74eee7d51e3517420ceea8abc919f38bea137d77d1c4fc79856c3dc2661e886a1138877a8d61715d0f58f0e6c4cbc18197fb496fdea36660f072544866a8b34f
@@ -70,7 +70,7 @@ class PaykassaOrder
70
70
 
71
71
  # Check order status
72
72
  def confirm_order(private_hash)
73
- make_request(func: :sci_confirm_order, private_hash: private_hash)
73
+ make_request({func: :sci_confirm_order, private_hash: private_hash})
74
74
  end
75
75
 
76
76
  private
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
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Paykassa
4
- VERSION = "0.1.28"
4
+ VERSION = "0.1.31"
5
5
  end
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.28
4
+ version: 0.1.31
5
5
  platform: ruby
6
6
  authors:
7
7
  - nottewae