Skip to content
Ivan edited this page Mar 4, 2019 · 2 revisions

Welcome to the ifns wiki!

Usage

Create intitializer config/initializers/ifns.rb

Ifns.configure do |config|
  config.host = 'YOUR_HOST'
  config.token = 'YOUR_TOKEN'
  config.logger = 'YOUR_LOGGER'
end
example_data = { id: 'resource_id', fn: 8710000101674196, fd: 7078, fpd: 1050183412, date: '2019-03-01T12:21:00', sum: 209900,
                 type_operation: 1}
client = ::Ifns::Client.new(example_data)
client.create_validation
# wait 500ms
client.find_validation
client.create_ticket
# wait 500ms
client.find_ticket
Clone this wiki locally