paykassa 0.1.22 → 0.1.25

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: 6db58c00ff623144722ae7c9692a171d0ec1db0941cbb7dcae43746b7900a8c6
4
- data.tar.gz: 3129f5623d1a824b0622e51723a79a0901247b24c968f010fca8caeddb3be8b0
3
+ metadata.gz: 5e05c39e2e8055a34718cacc7e58aa512362601f29049c5a7585e308ad1f277e
4
+ data.tar.gz: 3ed6311fd5e800153801e27b4e324c62304db1dd8cc001b414d38725de46decc
5
5
  SHA512:
6
- metadata.gz: 6ddeb31c84524f3fe76ed9ce4424fc05d88422f8068a5ad2e85db6386747112a1f1e32fce70ef21773d45ae18a6f968a80a68b1293a7338978ceef781b438277
7
- data.tar.gz: d247490f6fc518d4462a672b40287ceda6f252faba2ee5ec2731be4854780dd7b0f7115845c26296ec88a204d36b420292703c68b6eb3f04e6a6699e4af801aa
6
+ metadata.gz: 3f1252bb1932bb0befdc8396e5ece34c617a508da96d70f11f2ab3bfb15d0b4c54a7232cad2a9b84cc4e7ea2a82453a43c80f2f3f32b571b17a7ea036a3491c5
7
+ data.tar.gz: afd6923408f442acfbd3df4cbe49d4843a0549d498e2074248def69d6049db56a140152cfd2887d35db61a65c21690e35a3de509dfa2ae9f932dae83e3cc12cd
@@ -36,9 +36,10 @@ class PaykassaOrder
36
36
 
37
37
  # Request for create order
38
38
  def create_order(amount: , currency:, order_id:, paid_commision: , comment:, system:)
39
+ puts "system: #{system}"
39
40
  data = {
40
41
  func: :sci_create_order,
41
- amount: amount,
42
+ amount: amount.to_f,
42
43
  currency: currency,
43
44
  order_id: order_id,
44
45
  phone: "false",
@@ -52,9 +53,10 @@ class PaykassaOrder
52
53
  )
53
54
  end
54
55
  def get_data(amount: , currency:, order_id:, paid_commission: , comment:, system:)
56
+ puts "system: #{system}"
55
57
  data = {
56
58
  func: :sci_create_order_get_data,
57
- amount: amount,
59
+ amount: amount.to_f,
58
60
  currency: currency,
59
61
  order_id: order_id,
60
62
  phone: "false",
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.22"
4
+ VERSION = "0.1.25"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: paykassa
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.22
4
+ version: 0.1.25
5
5
  platform: ruby
6
6
  authors:
7
7
  - nottewae
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-05-17 00:00:00.000000000 Z
11
+ date: 2022-05-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: redcarpet