paykassa 0.1.20 → 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 +24 -22
- 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: 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,32 +36,34 @@ class PaykassaOrder
|
|
36
36
|
|
37
37
|
# Request for create order
|
38
38
|
def create_order(amount: , currency:, order_id:, paid_commision: , comment:, system:)
|
39
|
+
data = {
|
40
|
+
func: :sci_create_order,
|
41
|
+
amount: amount,
|
42
|
+
currency: currency,
|
43
|
+
order_id: order_id,
|
44
|
+
phone: "false",
|
45
|
+
paid_commission: paid_commision,
|
46
|
+
comment: comment,
|
47
|
+
system: SYSTEM_IDS[system]
|
48
|
+
}
|
49
|
+
puts data.inspect
|
39
50
|
make_request(
|
40
|
-
|
41
|
-
func: :sci_create_order,
|
42
|
-
amount: amount,
|
43
|
-
currency: currency,
|
44
|
-
order_id: order_id,
|
45
|
-
phone: "false",
|
46
|
-
paid_commission: paid_commision,
|
47
|
-
comment: comment,
|
48
|
-
system: SYSTEM_IDS[system]
|
49
|
-
}
|
51
|
+
data
|
50
52
|
)
|
51
53
|
end
|
52
54
|
def get_data(amount: , currency:, order_id:, paid_commission: , comment:, system:)
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
)
|
55
|
+
data = {
|
56
|
+
func: :sci_create_order_get_data,
|
57
|
+
amount: amount,
|
58
|
+
currency: currency,
|
59
|
+
order_id: order_id,
|
60
|
+
phone: "false",
|
61
|
+
paid_commission: paid_commission,
|
62
|
+
comment: comment,
|
63
|
+
system: SYSTEM_IDS[system]
|
64
|
+
}
|
65
|
+
puts data.inspect
|
66
|
+
make_request(data)
|
65
67
|
end
|
66
68
|
|
67
69
|
# Check order status
|
data/lib/paykassa/version.rb
CHANGED