smartkiosk-server 0.10.18 → 0.10.19

Sign up to get free protection for your applications and to get access to all the features.
@@ -63,6 +63,11 @@ class CardsMkbAcquirer
63
63
  auth.pan = auth.track2.slice(0, delimiter)
64
64
  auth.expiry = auth.track2.slice(delimiter + 1, 4)
65
65
 
66
+ unless @payment.pin_block.value.blank?
67
+ auth.security_control = '2001010100000000'
68
+ auth.pin_block = @payment.pin_block.value
69
+ end
70
+
66
71
  terminal = "OOOMKB TERM#{@payment.terminal.keyword}"
67
72
  city = "Moscow"
68
73
  country = "RU"
@@ -1,6 +1,7 @@
1
1
  class Payment < ActiveRecord::Base
2
2
  include DateExpander
3
3
  include Stateflow
4
+ include Redis::Objects
4
5
 
5
6
  SOURCE_INNER = 0
6
7
  SOURCE_MANUAL = 1
@@ -14,6 +15,8 @@ class Payment < ActiveRecord::Base
14
15
  TYPE_PURSE = 5
15
16
  TYPE_ACCOUNT = 6
16
17
 
18
+ value :pin_block
19
+
17
20
  #
18
21
  # STATEFLOW
19
22
  #
@@ -1,5 +1,5 @@
1
1
  module Smartkiosk
2
2
  module Server
3
- VERSION = '0.10.18'
3
+ VERSION = '0.10.19'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smartkiosk-server
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.18
4
+ version: 0.10.19
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -330,7 +330,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
330
330
  version: '0'
331
331
  segments:
332
332
  - 0
333
- hash: 3487545526415040527
333
+ hash: 2408156928933450265
334
334
  required_rubygems_version: !ruby/object:Gem::Requirement
335
335
  none: false
336
336
  requirements: