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 +4 -4
- data/lib/paykassa/pay.rb +7 -3
- data/lib/paykassa/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e5b2f4e36c9dc2f7cece9acef9244b198e7137b59723089fd3d6c0387f961fe1
|
4
|
+
data.tar.gz: ab64534aa56630e37f457c95ad98d06345b9f61061db48461e57da5be87c487b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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)
|
data/lib/paykassa/version.rb
CHANGED