paykassa 0.1.22 → 0.1.25
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 +4 -2
- data/lib/paykassa/pay.rb +1 -1
- 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: 5e05c39e2e8055a34718cacc7e58aa512362601f29049c5a7585e308ad1f277e
|
4
|
+
data.tar.gz: 3ed6311fd5e800153801e27b4e324c62304db1dd8cc001b414d38725de46decc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3f1252bb1932bb0befdc8396e5ece34c617a508da96d70f11f2ab3bfb15d0b4c54a7232cad2a9b84cc4e7ea2a82453a43c80f2f3f32b571b17a7ea036a3491c5
|
7
|
+
data.tar.gz: afd6923408f442acfbd3df4cbe49d4843a0549d498e2074248def69d6049db56a140152cfd2887d35db61a65c21690e35a3de509dfa2ae9f932dae83e3cc12cd
|
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",
|
data/lib/paykassa/pay.rb
CHANGED
@@ -35,7 +35,7 @@ class PaykassaPay
|
|
35
35
|
end
|
36
36
|
def pay(amount: , shop: , currency: , system_name: , paid_commission: "shop", number:, tag:, priority:)
|
37
37
|
data = {
|
38
|
-
amount: amount,
|
38
|
+
amount: amount.to_f,
|
39
39
|
shop: shop,
|
40
40
|
currency: currency,
|
41
41
|
system: SYSTEM_IDS[system_name],
|
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.25
|
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
|