paykassa 0.1.24 → 0.1.27
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/paykassa/pay.rb +1 -1
- data/lib/paykassa/version.rb +1 -1
- data/lib/paykassa.rb +3 -3
- 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: '084c9d49070ec9120ef04306a59976b865440d39c89a010a678a0a43be8a73d9'
|
4
|
+
data.tar.gz: ff14b8c274ef8dd1e5fef5da08c16bf797d94256bc4ebe40b9fe32449cef2a8c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 34b8ea2a5b3052874a565531f32fb3bedb2fd69625b72ff80523047c1e8ccf46ba5030827c754acb00f7325df617d863297806f25efe5c6542863774eba8015c
|
7
|
+
data.tar.gz: a34d0fc7a809919033ecb04a28f8b2a3c7f66d00916c83d0fa7b648935246cc28dee94ea75d65e07f4cc96bbb3f288f18f1ce11c70ab6a353ecf9b97740a0c3b
|
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
data/lib/paykassa.rb
CHANGED
@@ -23,16 +23,16 @@ module Paykassa
|
|
23
23
|
|
24
24
|
def pay(amount: , shop: , currency: , system_name: , paid_commission: "shop", number:, tag:, priority:)
|
25
25
|
raise "api_key not present!" if @paykassa_pay.nil?
|
26
|
-
@paykassa_pay.pay(
|
26
|
+
@paykassa_pay.pay(
|
27
27
|
amount: amount,
|
28
28
|
shop: shop,
|
29
29
|
currency: currency,
|
30
30
|
system_name: system_name,
|
31
|
-
paid_commision:
|
31
|
+
paid_commision: paid_commission,
|
32
32
|
number: number,
|
33
33
|
tag: tag,
|
34
34
|
priority: priority
|
35
|
-
|
35
|
+
)
|
36
36
|
end
|
37
37
|
|
38
38
|
def balance(shop:)
|