paykassa 0.1.4 → 0.1.5

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: 8687f5ec9fd91c050e4e5f8ac214b21c4749f7d29d380cb019752cbd0855746d
4
- data.tar.gz: 532ac74da80f99e7fdc94ffa54fcf06e24b54f3fa1d3da95d50282dc087ca026
3
+ metadata.gz: e5b2f4e36c9dc2f7cece9acef9244b198e7137b59723089fd3d6c0387f961fe1
4
+ data.tar.gz: ab64534aa56630e37f457c95ad98d06345b9f61061db48461e57da5be87c487b
5
5
  SHA512:
6
- metadata.gz: ef0b01632b37372bf16409462a2ec24d9ed54aafe95ab5db6a7293d2675002c0b4e3fdad2c3d1b75cc309b19c87d5143e6eefa0c1fe8baebf6fefaebcc934454
7
- data.tar.gz: 3c5cd6a97d0459e1d211ece2759602208b5a834f08238cceef49cb48406e237b8273f5ab6a7fc7f8e1a989f294606b07f7e5b6760b862d7f4d211f0edafd7aa2
6
+ metadata.gz: 93e815ffd6c6cdf4b624cbdb0b3396ce098b3dfe49ef5133520a1a6a4c41c45ef5d5d57d175759bed01acfcd723fa468ef3cb69daf23f336405f7cedfe45bffd
7
+ data.tar.gz: 11a8fb9d2daa53cbbc3dd96723656f47f1bebf6383265fdbab1d8ac9851e8aa488daa27548bcecd0350e8cb9f1a238ba6d68c4d5127ab0553614bc4ef05c4203
data/lib/paykassa/pay.rb CHANGED
@@ -58,16 +58,20 @@ class PaykassaPay
58
58
  if !CURRENCIES.include? out
59
59
  raise "#{out} not include in currencies: #{CURRENCIES}"
60
60
  end
61
- make_request(
61
+ data = {
62
62
  currency_in: inn,
63
- currency_out: out,
63
+ currency_out: out
64
+ }
65
+ make_request(
66
+ nil,
67
+ data,
64
68
  false,
65
69
  RATE_URL
66
70
  )
67
71
  end
68
72
  private
69
73
  def make_request(func,data,merge_auth = true, url= nil)
70
- data = data.merge({func: func})
74
+ data = data.merge({func: func}) if func
71
75
  data = data.merge(@_auth) if merge_auth
72
76
  url = BASE_SCI_URI if url.nil?
73
77
  res = Net::HTTP.post_form(url, data)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Paykassa
4
- VERSION = "0.1.4"
4
+ VERSION = "0.1.5"
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.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - nottewae