paykassa 0.1.21 → 0.1.24
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/paykassa/order.rb +8 -3
- data/lib/paykassa/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: be147d822459318dfbdd6809ddc76ceba38ab60af866fa16300b2d3d7f2b586a
|
4
|
+
data.tar.gz: cb73b4852cd1fd6c8b737e4c8f1414e0328b20eefa4ce3142a4505515739303e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 713f2b123725d374a0640d9dda84bac4c571d4f9a8fb5f31636531e39d1ff8cb6a1dcd154b339ed60e365a668f775f6391eac64590ad69d676b6f6b326df8b12
|
7
|
+
data.tar.gz: 42cd9fb44ad1fd893d798b4d9be60875323225d5c2790fcdef465e6262a521fd14d9a51a6b268f2bae83453d27f3d9217eabc96d3afce1a1e9893e138ae65604
|
data/lib/paykassa/order.rb
CHANGED
@@ -36,9 +36,10 @@ class PaykassaOrder
|
|
36
36
|
|
37
37
|
# Request for create order
|
38
38
|
def create_order(amount: , currency:, order_id:, paid_commision: , comment:, system:)
|
39
|
+
puts "system: #{system}"
|
39
40
|
data = {
|
40
41
|
func: :sci_create_order,
|
41
|
-
amount: amount,
|
42
|
+
amount: amount.to_f,
|
42
43
|
currency: currency,
|
43
44
|
order_id: order_id,
|
44
45
|
phone: "false",
|
@@ -52,9 +53,10 @@ class PaykassaOrder
|
|
52
53
|
)
|
53
54
|
end
|
54
55
|
def get_data(amount: , currency:, order_id:, paid_commission: , comment:, system:)
|
56
|
+
puts "system: #{system}"
|
55
57
|
data = {
|
56
58
|
func: :sci_create_order_get_data,
|
57
|
-
amount: amount,
|
59
|
+
amount: amount.to_f,
|
58
60
|
currency: currency,
|
59
61
|
order_id: order_id,
|
60
62
|
phone: "false",
|
@@ -74,7 +76,10 @@ class PaykassaOrder
|
|
74
76
|
private
|
75
77
|
|
76
78
|
def make_request(data)
|
77
|
-
|
79
|
+
full_data = data.merge(@_auth)
|
80
|
+
puts BASE_SCI_URI
|
81
|
+
puts full_data.inspect
|
82
|
+
res = Net::HTTP.post_form(BASE_SCI_URI, full_data)
|
78
83
|
JSON.parse(res.body).deep_symbolize_keys
|
79
84
|
end
|
80
85
|
end
|
data/lib/paykassa/version.rb
CHANGED
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.
|
4
|
+
version: 0.1.24
|
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-
|
11
|
+
date: 2022-05-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: redcarpet
|