paykassa 0.1.21 → 0.1.24

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: 56875c958da2f3b26630795ef29f604c011b995cc7d120e6ab7f1a3cf752f1d7
4
- data.tar.gz: 3dad9c595beba56487d435d15b8407181779bd808f0a6370d1c170a81550605a
3
+ metadata.gz: be147d822459318dfbdd6809ddc76ceba38ab60af866fa16300b2d3d7f2b586a
4
+ data.tar.gz: cb73b4852cd1fd6c8b737e4c8f1414e0328b20eefa4ce3142a4505515739303e
5
5
  SHA512:
6
- metadata.gz: fd10e54989a255904ceec18ac28137e716c31d9ada088b7652f1bbf28bcc926120db01954f84f99058f84f9abc1ff2f75f0ec24b63009b3413290eb271e1bb59
7
- data.tar.gz: 7da5d9f51e65036d32de27e68e8e8b6e9a7a3a7a05179d0686d87ca1643d2ea6eb0f8732a38dc35e7a76512076858d6353ccb73d489dde00d493222da33beca2
6
+ metadata.gz: 713f2b123725d374a0640d9dda84bac4c571d4f9a8fb5f31636531e39d1ff8cb6a1dcd154b339ed60e365a668f775f6391eac64590ad69d676b6f6b326df8b12
7
+ data.tar.gz: 42cd9fb44ad1fd893d798b4d9be60875323225d5c2790fcdef465e6262a521fd14d9a51a6b268f2bae83453d27f3d9217eabc96d3afce1a1e9893e138ae65604
@@ -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",
@@ -74,7 +76,10 @@ class PaykassaOrder
74
76
  private
75
77
 
76
78
  def make_request(data)
77
- res = Net::HTTP.post_form(BASE_SCI_URI, data.merge(@_auth))
79
+ full_data = data.merge(@_auth)
80
+ puts BASE_SCI_URI
81
+ puts full_data.inspect
82
+ res = Net::HTTP.post_form(BASE_SCI_URI, full_data)
78
83
  JSON.parse(res.body).deep_symbolize_keys
79
84
  end
80
85
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Paykassa
4
- VERSION = "0.1.21"
4
+ VERSION = "0.1.24"
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.21
4
+ version: 0.1.24
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