paykassa 0.1.18 → 0.1.21
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 +9 -3
- data/lib/paykassa/version.rb +1 -1
- data/lib/paykassa.rb +0 -2
- 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: 56875c958da2f3b26630795ef29f604c011b995cc7d120e6ab7f1a3cf752f1d7
|
4
|
+
data.tar.gz: 3dad9c595beba56487d435d15b8407181779bd808f0a6370d1c170a81550605a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fd10e54989a255904ceec18ac28137e716c31d9ada088b7652f1bbf28bcc926120db01954f84f99058f84f9abc1ff2f75f0ec24b63009b3413290eb271e1bb59
|
7
|
+
data.tar.gz: 7da5d9f51e65036d32de27e68e8e8b6e9a7a3a7a05179d0686d87ca1643d2ea6eb0f8732a38dc35e7a76512076858d6353ccb73d489dde00d493222da33beca2
|
data/lib/paykassa/order.rb
CHANGED
@@ -36,7 +36,7 @@ class PaykassaOrder
|
|
36
36
|
|
37
37
|
# Request for create order
|
38
38
|
def create_order(amount: , currency:, order_id:, paid_commision: , comment:, system:)
|
39
|
-
|
39
|
+
data = {
|
40
40
|
func: :sci_create_order,
|
41
41
|
amount: amount,
|
42
42
|
currency: currency,
|
@@ -45,10 +45,14 @@ class PaykassaOrder
|
|
45
45
|
paid_commission: paid_commision,
|
46
46
|
comment: comment,
|
47
47
|
system: SYSTEM_IDS[system]
|
48
|
+
}
|
49
|
+
puts data.inspect
|
50
|
+
make_request(
|
51
|
+
data
|
48
52
|
)
|
49
53
|
end
|
50
54
|
def get_data(amount: , currency:, order_id:, paid_commission: , comment:, system:)
|
51
|
-
|
55
|
+
data = {
|
52
56
|
func: :sci_create_order_get_data,
|
53
57
|
amount: amount,
|
54
58
|
currency: currency,
|
@@ -57,7 +61,9 @@ class PaykassaOrder
|
|
57
61
|
paid_commission: paid_commission,
|
58
62
|
comment: comment,
|
59
63
|
system: SYSTEM_IDS[system]
|
60
|
-
|
64
|
+
}
|
65
|
+
puts data.inspect
|
66
|
+
make_request(data)
|
61
67
|
end
|
62
68
|
|
63
69
|
# Check order status
|
data/lib/paykassa/version.rb
CHANGED
data/lib/paykassa.rb
CHANGED
@@ -46,7 +46,6 @@ module Paykassa
|
|
46
46
|
order = @paykassa_order.get_data( amount: amount,
|
47
47
|
currency: currency,
|
48
48
|
order_id: order_id,
|
49
|
-
phone: "false",
|
50
49
|
paid_commission: paid_commission,
|
51
50
|
comment: comment,
|
52
51
|
system: system
|
@@ -59,7 +58,6 @@ module Paykassa
|
|
59
58
|
amount: amount,
|
60
59
|
currency: currency,
|
61
60
|
order_id: order_id,
|
62
|
-
phone: "false",
|
63
61
|
paid_commission: paid_commision,
|
64
62
|
comment: comment,
|
65
63
|
system: system
|