paykassa 0.1.18 → 0.1.19
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 +20 -16
- 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: 70a713697194fdb5fd26d597affdbd11f99ede103c580120f9ec6a4ede4c8b4e
|
4
|
+
data.tar.gz: 850ad95ef63c237a96723798d274b86c187c99887ca6485b36639ee1341e9f9c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ec7af94670998882aa912ff51649bba3644298a12cdaea7798d396087dcbc6bb6da8f336265cc0ffdb3514911cb4f0e69de096f0b4029d76f7099aaf018754c1
|
7
|
+
data.tar.gz: 6e8cf3a0a482bffd547fd9755fc9811a1b854b0a9525b0f44517fac4ad1728e051965ea2e065e8d9bd55ce007bf6fb14182982fd35b871b1670f0f0323a282b1
|
data/lib/paykassa/order.rb
CHANGED
@@ -37,26 +37,30 @@ class PaykassaOrder
|
|
37
37
|
# Request for create order
|
38
38
|
def create_order(amount: , currency:, order_id:, paid_commision: , comment:, system:)
|
39
39
|
make_request(
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
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
|
+
}
|
48
50
|
)
|
49
51
|
end
|
50
52
|
def get_data(amount: , currency:, order_id:, paid_commission: , comment:, system:)
|
51
53
|
make_request(
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
54
|
+
{
|
55
|
+
func: :sci_create_order_get_data,
|
56
|
+
amount: amount,
|
57
|
+
currency: currency,
|
58
|
+
order_id: order_id,
|
59
|
+
phone: "false",
|
60
|
+
paid_commission: paid_commission,
|
61
|
+
comment: comment,
|
62
|
+
system: SYSTEM_IDS[system]
|
63
|
+
}
|
60
64
|
)
|
61
65
|
end
|
62
66
|
|
data/lib/paykassa/version.rb
CHANGED