paymaster 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 12ed98282b471abc10fe2142286611561868ca28
4
+ data.tar.gz: 89e0ce891df4494be6238ed47c79d08dad739eea
5
+ SHA512:
6
+ metadata.gz: 5426f4dfba09682f3ee124fc7707f70555a29bcb8fa8840b7c643c5a6998b95a1a19ee177c2a1b731e77acb8df27546d2263938daedffbc731deb920af27b294
7
+ data.tar.gz: 1c9eb53d93be2a97f02acdf3b6a1635d515045c99c65fab28b8e100b0d3ce67421b9bf27f49f39a1894ccbb5c82c4628515f795e8159e648ca38fa3214a81368
data/.gitignore ADDED
@@ -0,0 +1,9 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
data/.travis.yml ADDED
@@ -0,0 +1,4 @@
1
+ language: ruby
2
+ rvm:
3
+ - 2.2.3
4
+ before_install: gem install bundler -v 1.10.6
@@ -0,0 +1,13 @@
1
+ # Contributor Code of Conduct
2
+
3
+ As contributors and maintainers of this project, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities.
4
+
5
+ We are committed to making participation in this project a harassment-free experience for everyone, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, ethnicity, age, or religion.
6
+
7
+ Examples of unacceptable behavior by participants include the use of sexual language or imagery, derogatory comments or personal attacks, trolling, public or private harassment, insults, or other unprofessional conduct.
8
+
9
+ Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct. Project maintainers who do not follow the Code of Conduct may be removed from the project team.
10
+
11
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by opening an issue or contacting one or more of the project maintainers.
12
+
13
+ This Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.0.0, available at [http://contributor-covenant.org/version/1/0/0/](http://contributor-covenant.org/version/1/0/0/)
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in paymaster.gemspec
4
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2015 Kirill Platonov
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,82 @@
1
+ # Paymaster
2
+
3
+ Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/paymaster`. To experiment with that code, run `bin/console` for an interactive prompt.
4
+
5
+ TODO: Delete this and the text above, and describe your gem
6
+
7
+ ## Installation
8
+
9
+ Add this line to your application's Gemfile:
10
+
11
+ ```ruby
12
+ gem 'paymaster'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install paymaster
22
+
23
+ ## Usage
24
+
25
+ First, you need to initialize paymaster client:
26
+
27
+ ```ruby
28
+ client = Paymaster::Client.new(merchant_id: 123, secret_key: "secret")
29
+ # => #<Paymaster::Client:0x007fec5a153670 @merchant_id=123, @secret_key="secret">
30
+ ```
31
+
32
+ Then you can generate payment link:
33
+
34
+ ```ruby
35
+ url = client.generate_url(amount: 150, description: "Test", number: "7654321")
36
+ # => "https://lmi.paymaster.ua/index/get?LMI_MERCHANT_ID=123&LMI_PAYMENT_AMOUNT=150&LMI_PAYMENT_NO=7654321&LMI_PAYMENT_DESC=Test&LMI_HASH=473035659648C1F3AF99F1E2E7B1A2863144916C908AE990C5E8F42EF2577465"
37
+ ```
38
+
39
+ Fetch information about existing transaction:
40
+
41
+ ```ruby
42
+ transaction = client.get_transaction(payment_id: 7654322)
43
+ # => #<Paymaster::GetTransaction::Response:0x007fec5f16a550
44
+ # @amount=#<BigDecimal:7fec5a7f0bb8,'0.15E3',9(18)>,
45
+ # @bank_id=0,
46
+ # @data={...},
47
+ # @description="Test",
48
+ # @merchant_comission=#<BigDecimal:7fec5f16a668,'0.0',9(18)>,
49
+ # @mode=1,
50
+ # @number=7654322,
51
+ # @paid_amount=#<BigDecimal:7fec5f16a6b8,'0.15E3',9(18)>,
52
+ # @payer_comission=#<BigDecimal:7fec5f16a618,'0.0',9(18)>,
53
+ # @payer_email=nil,
54
+ # @payer_identifier=0,
55
+ # @payer_phone=nil,
56
+ # @paymaster_id=18777185,
57
+ # @payment_date=Sun, 06 Dec 2015 18:06:34 EET +02:00,
58
+ # @payment_system=18,
59
+ # @state=1>
60
+ ```
61
+
62
+ Or perform a refund:
63
+
64
+ ```ruby
65
+ refund = client.refund(paymaster_id: 18777185, total: 150, refund_amount: 100, refund_id: 76543212)
66
+ # => #<Paymaster::Refund::Response:0x007fec5b861a10 @code=600, @data={"ResultCode"=>"600", "ResultMsg"=>"Возмещение успешно совершено"}, @message="Возмещение успешно совершено">
67
+ ```
68
+
69
+ ## Development
70
+
71
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
72
+
73
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
74
+
75
+ ## Contributing
76
+
77
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/paymaster. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](contributor-covenant.org) code of conduct.
78
+
79
+
80
+ ## License
81
+
82
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
data/Rakefile ADDED
@@ -0,0 +1,10 @@
1
+ require "bundler/gem_tasks"
2
+ require "rake/testtask"
3
+
4
+ Rake::TestTask.new(:test) do |t|
5
+ t.libs << "test"
6
+ t.libs << "lib"
7
+ t.test_files = FileList['test/**/*_test.rb']
8
+ end
9
+
10
+ task :default => :test
data/bin/console ADDED
@@ -0,0 +1,15 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "paymaster"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # client = Paymaster::Client.new(merchant_id: 123, secret_key: "secret")
10
+ # url = client.generate_url(amount: 150, description: "Test", number: "7654321")
11
+ # transaction = client.get_transaction(payment_id: 7654321)
12
+ # refund = client.refund(paymaster_id: 18769413, total: 150, refund_amount: 100, refund_id: 76543211)
13
+
14
+ require "pry"
15
+ Pry.start
data/bin/setup ADDED
@@ -0,0 +1,7 @@
1
+ #!/bin/bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+
5
+ bundle install
6
+
7
+ # Do any other automated setup that you need to do here
data/lib/paymaster.rb ADDED
@@ -0,0 +1,12 @@
1
+ require "faraday"
2
+ require "active_support"
3
+ require "active_support/core_ext"
4
+
5
+ require "paymaster/version"
6
+ require "paymaster/request_error"
7
+ require "paymaster/base_request"
8
+ require "paymaster/base_response"
9
+ require "paymaster/get_transaction"
10
+ require "paymaster/refund"
11
+ require "paymaster/url_generator"
12
+ require "paymaster/client"
@@ -0,0 +1,39 @@
1
+ module Paymaster
2
+ class BaseRequest
3
+ attr_accessor :client
4
+
5
+ def initialize(args={})
6
+ args.each do |k, v|
7
+ public_send "#{k}=", v
8
+ end
9
+ end
10
+
11
+ def endpoint
12
+ raise NotImplementedError, 'You should implement #endpoint'
13
+ end
14
+
15
+ def params
16
+ {}
17
+ end
18
+
19
+ def sign(string)
20
+ return unless client.secret_key
21
+ Digest::SHA256.hexdigest(string + client.secret_key)
22
+ end
23
+
24
+ def perform
25
+ xml_body = params.to_xml(
26
+ root: "Command",
27
+ skip_types: true,
28
+ skip_instruct: true,
29
+ indent: 0,
30
+ dasherize: false,
31
+ )
32
+ signature = sign(xml_body)
33
+ xml_body.gsub! "<LMI_HASH></LMI_HASH>", "<LMI_HASH>#{signature}</LMI_HASH>"
34
+ response = Faraday.post endpoint, xml_body
35
+
36
+ self.class::Response.parse(response.body)
37
+ end
38
+ end
39
+ end
@@ -0,0 +1,63 @@
1
+ module Paymaster
2
+ class BaseResponse
3
+ attr_accessor :data
4
+
5
+ def initialize(args={})
6
+ args.each do |k, v|
7
+ public_send "#{k}=", v
8
+ end
9
+ end
10
+
11
+ class << self
12
+ def parse(body)
13
+ response = Hash.from_xml(body)["Response"]
14
+
15
+ if response["Retval"].to_i != 1
16
+ Paymaster::RequestError.new(response)
17
+ else
18
+ response = response["Retdata"]
19
+ response = response[root] if root
20
+ attrs = {}
21
+
22
+ response.each do |key, value|
23
+ next unless field = fields[key]
24
+ attrs[field[:name]] = send(field[:type], value)
25
+ end
26
+
27
+ new(attrs.merge(data: response))
28
+ end
29
+ end
30
+
31
+ protected
32
+
33
+ def root(value=nil)
34
+ @root ||= value
35
+ end
36
+
37
+ def fields
38
+ @fields ||= {}
39
+ end
40
+
41
+ def field(name, type=:string, key: name.to_s)
42
+ fields[key] = { name: name, type: type }
43
+ attr_accessor name
44
+ end
45
+
46
+ def decimal(value)
47
+ BigDecimal.new(value)
48
+ end
49
+
50
+ def integer(value)
51
+ value.to_i
52
+ end
53
+
54
+ def string(value)
55
+ value
56
+ end
57
+
58
+ def datetime(value)
59
+ ActiveSupport::TimeZone["Europe/Kiev"].parse(value)
60
+ end
61
+ end
62
+ end
63
+ end
@@ -0,0 +1,23 @@
1
+ module Paymaster
2
+ class Client
3
+ attr_accessor :merchant_id
4
+ attr_accessor :secret_key
5
+
6
+ def initialize(merchant_id:, secret_key: nil)
7
+ self.merchant_id = merchant_id
8
+ self.secret_key = secret_key
9
+ end
10
+
11
+ def generate_url(args)
12
+ UrlGenerator.new(args.merge(client: self)).generate
13
+ end
14
+
15
+ def get_transaction(args)
16
+ GetTransaction.new(args.merge(client: self)).perform
17
+ end
18
+
19
+ def refund(args)
20
+ Refund.new(args.merge(client: self)).perform
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,39 @@
1
+ module Paymaster
2
+ class GetTransaction < BaseRequest
3
+ class Response < BaseResponse
4
+ root "Transaction"
5
+
6
+ field :amount, :decimal, key: "LMI_PAYMENT_AMOUNT"
7
+ field :number, :integer, key: "LMI_PAYMENT_NO"
8
+ field :description, key: "LMI_PAYMENT_DESC"
9
+ field :payment_system, :integer, key: "LMI_PAYMENT_SYSTEM"
10
+ field :mode, :integer, key: "LMI_MODE"
11
+ field :paymaster_id, :integer, key: "LMI_SYS_PAYMENT_ID"
12
+ field :payment_date, :datetime, key: "LMI_SYS_PAYMENT_DATE"
13
+ field :paid_amount, :decimal, key: "LMI_PAID_AMOUNT"
14
+ field :payer_identifier, :integer, key: "LMI_PAYER_IDENTIFIER"
15
+ field :payer_phone, key: "LMI_PAYER_PHONE_NUMBER"
16
+ field :payer_email, key: "LMI_PAYER_EMAIL"
17
+ field :merchant_comission, :decimal, key: "LMI_COMMISS_MERCHANT"
18
+ field :payer_comission, :decimal, key: "LMI_COMMISS_PAYER"
19
+ field :bank_id, :integer, key: "BankPaymentId"
20
+ field :state, :integer, key: "State"
21
+ end
22
+
23
+ attr_accessor :payment_id
24
+ attr_accessor :paymaster_id
25
+
26
+ def endpoint
27
+ "https://api.paymaster.ua/merchants/get-transaction"
28
+ end
29
+
30
+ def params
31
+ {
32
+ LMI_MERCHANT_ID: client.merchant_id,
33
+ LMI_PAYMENT_NO: payment_id,
34
+ LMI_SYS_PAYMENT_ID: paymaster_id,
35
+ LMI_HASH: "",
36
+ }.compact
37
+ end
38
+ end
39
+ end
@@ -0,0 +1,28 @@
1
+ module Paymaster
2
+ class Refund < BaseRequest
3
+ class Response < BaseResponse
4
+ field :code, :integer, key: "ResultCode"
5
+ field :message, key: "ResultMsg"
6
+ end
7
+
8
+ attr_accessor :paymaster_id
9
+ attr_accessor :refund_id
10
+ attr_accessor :total
11
+ attr_accessor :refund_amount
12
+
13
+ def endpoint
14
+ "https://api.paymaster.ua/merchants/refund"
15
+ end
16
+
17
+ def params
18
+ {
19
+ LMI_MERCHANT_ID: client.merchant_id,
20
+ LMI_SYS_PAYMENT_NO: paymaster_id,
21
+ RefundId: refund_id,
22
+ ActionAmount: total,
23
+ RefundAmount: refund_amount,
24
+ LMI_HASH: "",
25
+ }.compact
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,13 @@
1
+ module Paymaster
2
+ class RequestError
3
+ attr_accessor :data
4
+ attr_accessor :error_code
5
+ attr_accessor :error_message
6
+
7
+ def initialize(response)
8
+ self.data = response
9
+ self.error_code = response["Retval"].to_i
10
+ self.error_message = response["Retdesc"]
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,63 @@
1
+ module Paymaster
2
+ class UrlGenerator < BaseRequest
3
+ attr_accessor :amount
4
+ attr_accessor :number
5
+ attr_accessor :description
6
+ attr_accessor :expires
7
+ attr_accessor :phone_number
8
+ attr_accessor :email
9
+ attr_accessor :success_url
10
+ attr_accessor :success_url_method
11
+ attr_accessor :fail_url
12
+ attr_accessor :fail_url_method
13
+ attr_accessor :payment_system
14
+ attr_accessor :sim_mode
15
+
16
+ def endpoint
17
+ "https://lmi.paymaster.ua/index/get"
18
+ end
19
+
20
+ def params
21
+ {
22
+ LMI_MERCHANT_ID: client.merchant_id,
23
+ LMI_PAYMENT_AMOUNT: amount,
24
+ LMI_PAYMENT_NO: number,
25
+ LMI_PAYMENT_DESC: description,
26
+ LMI_EXPIRES: datetime(expires),
27
+ LMI_PAYER_PHONE_NUMBER: phone_number,
28
+ LMI_PAYER_EMAIL: email,
29
+ LMI_SUCCESS_URL: success_url,
30
+ LMI_SUCCESS_METHOD: methods(success_url_method),
31
+ LMI_FAIL_URL: fail_url,
32
+ LMI_FAIL_METHOD: methods(fail_url_method),
33
+ LMI_PAYMENT_SYSTEM: payment_system,
34
+ LMI_SIM_MODE: sim_mode,
35
+ LMI_HASH: signature,
36
+ }.compact
37
+ end
38
+
39
+ def generate
40
+ "#{endpoint}?#{params_as_string}"
41
+ end
42
+
43
+ def methods(method)
44
+ return unless method
45
+ method.to_s == "post" ? 1 : 0
46
+ end
47
+
48
+ def datetime(value)
49
+ return unless value
50
+ value.strftime("%Y-%m-%d %H:%M:%S")
51
+ end
52
+
53
+ def signature
54
+ return unless client.secret_key
55
+ string = "#{client.merchant_id}#{number}#{amount}#{client.secret_key}"
56
+ Digest::SHA256.hexdigest(string).upcase
57
+ end
58
+
59
+ def params_as_string
60
+ params.map { |k, v| "#{k}=#{v}" }.join("&")
61
+ end
62
+ end
63
+ end
@@ -0,0 +1,3 @@
1
+ module Paymaster
2
+ VERSION = "0.1.0"
3
+ end
data/paymaster.gemspec ADDED
@@ -0,0 +1,30 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'paymaster/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "paymaster"
8
+ spec.version = Paymaster::VERSION
9
+ spec.authors = ["Kirill Platonov"]
10
+ spec.email = ["mail@kirillplatonov.com"]
11
+
12
+ spec.summary = "Ruby wrapper for Paymaster.ua API"
13
+ spec.description = "Ruby wrapper for Paymaster.ua API"
14
+ spec.homepage = "https://github.com/kirillplatonov/paymaster"
15
+ spec.license = "MIT"
16
+
17
+ spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
18
+ spec.bindir = "exe"
19
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
20
+ spec.require_paths = ["lib"]
21
+
22
+ spec.add_dependency "faraday"
23
+ spec.add_dependency "builder"
24
+ spec.add_dependency "activesupport", ">= 4.1.8"
25
+
26
+ spec.add_development_dependency "bundler", "~> 1.10"
27
+ spec.add_development_dependency "rake", "~> 10.0"
28
+ spec.add_development_dependency "minitest"
29
+ spec.add_development_dependency "pry"
30
+ end
metadata ADDED
@@ -0,0 +1,161 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: paymaster
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Kirill Platonov
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2015-12-06 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: faraday
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: builder
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: activesupport
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: 4.1.8
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: 4.1.8
55
+ - !ruby/object:Gem::Dependency
56
+ name: bundler
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '1.10'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '1.10'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rake
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '10.0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '10.0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: minitest
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: pry
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ description: Ruby wrapper for Paymaster.ua API
112
+ email:
113
+ - mail@kirillplatonov.com
114
+ executables: []
115
+ extensions: []
116
+ extra_rdoc_files: []
117
+ files:
118
+ - ".gitignore"
119
+ - ".travis.yml"
120
+ - CODE_OF_CONDUCT.md
121
+ - Gemfile
122
+ - LICENSE.txt
123
+ - README.md
124
+ - Rakefile
125
+ - bin/console
126
+ - bin/setup
127
+ - lib/paymaster.rb
128
+ - lib/paymaster/base_request.rb
129
+ - lib/paymaster/base_response.rb
130
+ - lib/paymaster/client.rb
131
+ - lib/paymaster/get_transaction.rb
132
+ - lib/paymaster/refund.rb
133
+ - lib/paymaster/request_error.rb
134
+ - lib/paymaster/url_generator.rb
135
+ - lib/paymaster/version.rb
136
+ - paymaster.gemspec
137
+ homepage: https://github.com/kirillplatonov/paymaster
138
+ licenses:
139
+ - MIT
140
+ metadata: {}
141
+ post_install_message:
142
+ rdoc_options: []
143
+ require_paths:
144
+ - lib
145
+ required_ruby_version: !ruby/object:Gem::Requirement
146
+ requirements:
147
+ - - ">="
148
+ - !ruby/object:Gem::Version
149
+ version: '0'
150
+ required_rubygems_version: !ruby/object:Gem::Requirement
151
+ requirements:
152
+ - - ">="
153
+ - !ruby/object:Gem::Version
154
+ version: '0'
155
+ requirements: []
156
+ rubyforge_project:
157
+ rubygems_version: 2.4.5.1
158
+ signing_key:
159
+ specification_version: 4
160
+ summary: Ruby wrapper for Paymaster.ua API
161
+ test_files: []