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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: be147d822459318dfbdd6809ddc76ceba38ab60af866fa16300b2d3d7f2b586a
4
- data.tar.gz: cb73b4852cd1fd6c8b737e4c8f1414e0328b20eefa4ce3142a4505515739303e
3
+ metadata.gz: '084c9d49070ec9120ef04306a59976b865440d39c89a010a678a0a43be8a73d9'
4
+ data.tar.gz: ff14b8c274ef8dd1e5fef5da08c16bf797d94256bc4ebe40b9fe32449cef2a8c
5
5
  SHA512:
6
- metadata.gz: 713f2b123725d374a0640d9dda84bac4c571d4f9a8fb5f31636531e39d1ff8cb6a1dcd154b339ed60e365a668f775f6391eac64590ad69d676b6f6b326df8b12
7
- data.tar.gz: 42cd9fb44ad1fd893d798b4d9be60875323225d5c2790fcdef465e6262a521fd14d9a51a6b268f2bae83453d27f3d9217eabc96d3afce1a1e9893e138ae65604
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],
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Paykassa
4
- VERSION = "0.1.24"
4
+ VERSION = "0.1.27"
5
5
  end
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: 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:)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: paykassa
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.24
4
+ version: 0.1.27
5
5
  platform: ruby
6
6
  authors:
7
7
  - nottewae