paykassa 0.1.20 → 0.1.21

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: cc289024a105bba1fbf962902eaef1c009639112521717c706fc4f2dfb0c4f05
4
- data.tar.gz: cadef35697b660e15cc8f4a87a0205b42aae75c6673030b6e7d9cf790962df67
3
+ metadata.gz: 56875c958da2f3b26630795ef29f604c011b995cc7d120e6ab7f1a3cf752f1d7
4
+ data.tar.gz: 3dad9c595beba56487d435d15b8407181779bd808f0a6370d1c170a81550605a
5
5
  SHA512:
6
- metadata.gz: f37b6032da1a743e004b659c6ac7e9e77f314e0ff1e6082e66c0630113192f89beffb3a054e3bf906e78f9a302c5df81cb2854b4ad1df77a8af006e1905cc7b3
7
- data.tar.gz: 80770b980ce9100337e6569febede4954f023d1d62fd2e91810d8c455fd495474302b12f55fde170abf2769f4f425989266c41a219c550ce6cdcc5c2b79e6f29
6
+ metadata.gz: fd10e54989a255904ceec18ac28137e716c31d9ada088b7652f1bbf28bcc926120db01954f84f99058f84f9abc1ff2f75f0ec24b63009b3413290eb271e1bb59
7
+ data.tar.gz: 7da5d9f51e65036d32de27e68e8e8b6e9a7a3a7a05179d0686d87ca1643d2ea6eb0f8732a38dc35e7a76512076858d6353ccb73d489dde00d493222da33beca2
@@ -36,32 +36,34 @@ class PaykassaOrder
36
36
 
37
37
  # Request for create order
38
38
  def create_order(amount: , currency:, order_id:, paid_commision: , comment:, system:)
39
+ data = {
40
+ func: :sci_create_order,
41
+ amount: amount,
42
+ currency: currency,
43
+ order_id: order_id,
44
+ phone: "false",
45
+ paid_commission: paid_commision,
46
+ comment: comment,
47
+ system: SYSTEM_IDS[system]
48
+ }
49
+ puts data.inspect
39
50
  make_request(
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
- }
51
+ data
50
52
  )
51
53
  end
52
54
  def get_data(amount: , currency:, order_id:, paid_commission: , comment:, system:)
53
- make_request(
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
- }
64
- )
55
+ data = {
56
+ func: :sci_create_order_get_data,
57
+ amount: amount,
58
+ currency: currency,
59
+ order_id: order_id,
60
+ phone: "false",
61
+ paid_commission: paid_commission,
62
+ comment: comment,
63
+ system: SYSTEM_IDS[system]
64
+ }
65
+ puts data.inspect
66
+ make_request(data)
65
67
  end
66
68
 
67
69
  # Check order status
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Paykassa
4
- VERSION = "0.1.20"
4
+ VERSION = "0.1.21"
5
5
  end
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.20
4
+ version: 0.1.21
5
5
  platform: ruby
6
6
  authors:
7
7
  - nottewae