paykassa 0.1.17 → 0.1.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/paykassa/order.rb +21 -17
- data/lib/paykassa/version.rb +1 -1
- data/lib/paykassa.rb +2 -4
- 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: cc289024a105bba1fbf962902eaef1c009639112521717c706fc4f2dfb0c4f05
|
4
|
+
data.tar.gz: cadef35697b660e15cc8f4a87a0205b42aae75c6673030b6e7d9cf790962df67
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f37b6032da1a743e004b659c6ac7e9e77f314e0ff1e6082e66c0630113192f89beffb3a054e3bf906e78f9a302c5df81cb2854b4ad1df77a8af006e1905cc7b3
|
7
|
+
data.tar.gz: 80770b980ce9100337e6569febede4954f023d1d62fd2e91810d8c455fd495474302b12f55fde170abf2769f4f425989266c41a219c550ce6cdcc5c2b79e6f29
|
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
|
-
def get_data(amount: , currency:, order_id:,
|
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
data/lib/paykassa.rb
CHANGED
@@ -42,12 +42,11 @@ module Paykassa
|
|
42
42
|
def rate(c_in, c_out)
|
43
43
|
@paykassa_pay.currency_rate(c_in, c_out)
|
44
44
|
end
|
45
|
-
def get_order_address(amount: , currency:, order_id:,
|
45
|
+
def get_order_address(amount: , currency:, order_id:, paid_commission: , comment: "from paykassa gem", system:)
|
46
46
|
order = @paykassa_order.get_data( amount: amount,
|
47
47
|
currency: currency,
|
48
48
|
order_id: order_id,
|
49
|
-
|
50
|
-
paid_commission: paid_commision,
|
49
|
+
paid_commission: paid_commission,
|
51
50
|
comment: comment,
|
52
51
|
system: system
|
53
52
|
)
|
@@ -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
|