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