payline.rb 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: d6a93ff4570ea3a7de895a1bfdca21ca6dbd380b
4
+ data.tar.gz: 884f9aa6074c03d1bc7daabbc8671ba47fa8b1d0
5
+ SHA512:
6
+ metadata.gz: 7eb44586b3884401ae5af19c28187fe729ea6cce3a0110a7ab619ffb44df0b3011aea2a31843b6d0f0e58eec74846e8389ecf8d26476e7f3f8303b12d4438112
7
+ data.tar.gz: bcf9e593562d33fb373a6e7f9f28f98ecaa59b5b2564144c8185cd356856917ea7b522882fa928b6e89ce1a5644c07a3fabc710fea5480a6ddd7b4386a65c81d
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/.rspec ADDED
@@ -0,0 +1 @@
1
+ --color
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
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in payline.gemspec
4
+ gemspec
data/Guardfile ADDED
@@ -0,0 +1,43 @@
1
+ # A sample Guardfile
2
+ # More info at https://github.com/guard/guard#readme
3
+
4
+ ## Uncomment and set this to only include directories you want to watch
5
+ # directories %w(app lib config test spec features) \
6
+ # .select{|d| Dir.exists?(d) ? d : UI.warning("Directory #{d} does not exist")}
7
+
8
+ ## Note: if you are using the `directories` clause above and you are not
9
+ ## watching the project directory ('.'), then you will want to move
10
+ ## the Guardfile to a watched dir and symlink it back, e.g.
11
+ #
12
+ # $ mkdir config
13
+ # $ mv Guardfile config/
14
+ # $ ln -s config/Guardfile .
15
+ #
16
+ # and, you'll have to watch "config/Guardfile" instead of "Guardfile"
17
+
18
+ # Note: The cmd option is now required due to the increasing number of ways
19
+ # rspec may be run, below are examples of the most common uses.
20
+ # * bundler: 'bundle exec rspec'
21
+ # * bundler binstubs: 'bin/rspec'
22
+ # * spring: 'bin/rspec' (This will use spring if running and you have
23
+ # installed the spring binstubs per the docs)
24
+ # * zeus: 'zeus rspec' (requires the server to be started separately)
25
+ # * 'just' rspec: 'rspec'
26
+
27
+ guard :rspec, cmd: "bundle exec rspec" do
28
+ require "guard/rspec/dsl"
29
+ dsl = Guard::RSpec::Dsl.new(self)
30
+
31
+ # Feel free to open issues for suggestions and improvements
32
+
33
+ # RSpec files
34
+ rspec = dsl.rspec
35
+ watch(rspec.spec_helper) { rspec.spec_dir }
36
+ watch(rspec.spec_support) { rspec.spec_dir }
37
+ watch(rspec.spec_files)
38
+
39
+ # Ruby files
40
+ ruby = dsl.ruby
41
+ dsl.watch_spec_files_for(ruby.lib_files)
42
+ watch(%r{^lib/payline/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
43
+ end
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2015 Arvin Jenabi
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,128 @@
1
+ # Payline
2
+
3
+ Payline is an API client for handling payments with Payline.ir. You can easily integrate this gem to your ruby app - whether it's based on Rails or other frameworks - and make and verify your IRR payments.
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ ```ruby
10
+ gem 'payline.rb'
11
+ ```
12
+
13
+ And then execute:
14
+
15
+ $ bundle
16
+
17
+ Or install it yourself as:
18
+
19
+ $ gem install payline.rb
20
+
21
+ ## Usage
22
+
23
+ ### Configuration
24
+
25
+ You must configure the gem as below before using it, with a valid API token:
26
+ ```ruby
27
+ Payline.configure |config|
28
+ config.api_token = 'XXXXX-XXXXX-XXXXXXXX-XXXXXXXXX-XXXXXXXXXXXXXXXXXXXXX'
29
+ end
30
+ ```
31
+ You can get a valid api_token by signing up on Payline.ir.
32
+ There are other options to configure if you need, see `lib/payline/configuration.rb` for more information.
33
+
34
+ ### Request to make a payment
35
+
36
+ Initialize a payment request with a valid amount (must be bigger than 1000 IRR) and redirect_uri and then make the request by calling `request` on the object:
37
+
38
+ ```ruby
39
+ payment = Payline::Charge.new(amount: 250000, redirect_uri: 'http://localhost:3000/payment')
40
+
41
+ # Connects to the server to get an id_get.
42
+ # Returns a Payline::Response if everything goes well or rises respective error for the situation.
43
+ # See Errors Section for more information.
44
+ response = payment.request
45
+
46
+ # If the transaction was successful, you can get the address for the generated gateway:
47
+ gateway = response.gateway
48
+
49
+ # You can always check if the response is valid or not:
50
+ response.valid?
51
+ # => true
52
+ ```
53
+
54
+ ### Get the Confirmation for a payment
55
+
56
+ You can request for a confirmation of a payment like below:
57
+
58
+ ```ruby
59
+ confirmation = Payline::Confirmation.new(id_get: 34687545, trans_id: 5463466)
60
+
61
+ # Connects to the server to validate a transaction.
62
+ # Returns a Payline::Response if everything goes well or rises respective error for the situation.
63
+ # See Errors Section for more information.
64
+ response = confirmation.request
65
+
66
+ # You can always check if the response is valid or not:
67
+ response.valid?
68
+ # => true
69
+ ```
70
+
71
+ ### Client Errors
72
+
73
+ When a request fails, it raises a particular exception with a description.
74
+ There are several exceptions that may show up:
75
+
76
+ | Exception | Description |
77
+ | --------- | ----------- |
78
+ | PaylineError | Represents all Payline errors, catch this to catch all following exceptions . |
79
+ | BadAPIToken | If the provided token was wrong or no api_token was provided |
80
+ | BadAmount | If the requested amount was invalid or was not provided |
81
+ | BadRedirectURI | If redirect_uri was not provided |
82
+ | BadTransId | If provided trans_id was invalid |
83
+ | BadIdGet | If provided id_get was wrong |
84
+ | FailedTransaction | If the transaction has failed |
85
+ | InvalidResponse | If somehow it receives a bad/invalid response |
86
+ | NotFoundError | If the requested gateway was not found |
87
+
88
+ All errors inherit from ```Payline::PaylineError```, if you wish to catch all kinds of exceptions - and you should! - , try catching ```Payline::PaylineError``` and you'll be fine!
89
+
90
+ #### Handling Errors
91
+
92
+ The following piece of code should give you an idea of how to handle errors:
93
+
94
+ ```ruby
95
+ begin
96
+ confirmation = Payline::Confirmation.new(id_get: 34687545, trans_id: 5463466)
97
+ response = confirmation.request
98
+ rescue Payline::BadIdGet
99
+ # Invalid id_get was supplied to Payline's API
100
+ puts "Invalid id_get"
101
+ rescue Payline::BadTransId
102
+ # Invalid trans_id was supplied to Payline's API
103
+ puts "Invalid trans_id"
104
+ rescue Payline::FailedTransaction
105
+ # User failed to pay
106
+ puts "You've failed to pay the bill!"
107
+ rescue Payline::PaylineError => e
108
+ # Handles all other kinds of errors
109
+ puts "System: #{e}"
110
+ end
111
+ ```
112
+
113
+ ## Contributing
114
+
115
+ Bug reports and pull requests are welcome on GitHub at https://github.com/Arvinje/payline.
116
+
117
+ Always write tests and make sure they're all green and remember:
118
+ > In TDD we trust!
119
+
120
+ 1. Fork it
121
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
122
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
123
+ 4. Push to the branch (`git push origin my-new-feature`)
124
+ 5. Create new Pull Request
125
+
126
+ ## License
127
+
128
+ 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,6 @@
1
+ require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task :default => :spec
data/bin/console ADDED
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "payline"
5
+ require "pry"
6
+
7
+ 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/payline.rb ADDED
@@ -0,0 +1,17 @@
1
+ require "payline/version"
2
+ require "faraday"
3
+ require "payline/configuration"
4
+ require "payline/charge"
5
+ require "payline/confirmation"
6
+ require "payline/response"
7
+ require "payline/errors"
8
+
9
+ module Payline
10
+
11
+ # Payline.rb , version: 0.1
12
+ # Easily handle transactions with Payline.ir
13
+ # Author: Arvin Jenabi (https://github.com/Arvinje)
14
+ # Homepage: https://github.com/Arvinje/payline.rb
15
+ # This is an unofficial gem and the author is not related to Payline.ir at all!
16
+
17
+ end
@@ -0,0 +1,41 @@
1
+ module Payline
2
+
3
+ # Initialize a payment request:
4
+ # Payline::Charge.new(amount: AMOUNT, redirect_uri: 'REDIRECT_URI')
5
+ #
6
+ # Make the request by calling 'request' on the object:
7
+ # response = charge_instance.request
8
+ #
9
+ # If the request was successful, it returns an instance of Payline::Response with a true value for 'valid?'.
10
+ # Beware that in case of an error in payment, it'll rise a respective error based on the received response.
11
+ #
12
+ # You can generate the requested payment gateway address by calling 'gateway' on the object:
13
+ # response.gateway
14
+ #
15
+ # @example
16
+ # payment = Payline::Charge.new(amount: 250000, redirect_uri: 'http://localhost:3000/payment')
17
+ # response = payment.request
18
+ # response.valid?
19
+ # => true
20
+ # response.gateway
21
+ # => 'http://payline.ir/payment/gateway-79968'
22
+ #
23
+
24
+ class Charge
25
+ attr_accessor :amount, :redirect_uri
26
+
27
+ def initialize(options = {})
28
+ @connection = Payline.configuration.connection
29
+ @amount = options[:amount]
30
+ @redirect_uri = options[:redirect_uri]
31
+ @response = Response.new
32
+ end
33
+
34
+ def request
35
+ response = @connection.post Payline.configuration.charge_uri, { api: Payline.configuration.api_token, amount: @amount, redirect: @redirect_uri }
36
+ @response.body = response.body
37
+ @response.validate_request
38
+ end
39
+
40
+ end
41
+ end
@@ -0,0 +1,43 @@
1
+ module Payline
2
+
3
+ # Start by setting the basic configurations
4
+ # You should get a valid api_token by signing up on Payline.ir
5
+ # There are other options to configure if you need, see below for more information.
6
+ #
7
+ # @example
8
+ # Payline.configure do |config|
9
+ # config.api_token = 'adxcv-zzadq-polkjsad-opp13opoz-1sdf455aadzmck1244567'
10
+ # end
11
+
12
+ class Configuration
13
+ attr_accessor :main_uri, :charge_uri, :confirmation_uri, :api_token, :base_gateway
14
+ attr_reader :connection
15
+
16
+ def initialize
17
+ @main_uri = 'http://payline.ir'
18
+ @charge_uri = '/payment/gateway-send'
19
+ @confirmation_uri = '/payment/gateway-result-second'
20
+ @base_gateway = 'http://payline.ir/payment/gateway-'
21
+ @connection = initialize_faraday
22
+ end
23
+
24
+ private
25
+ def initialize_faraday
26
+ connection = Faraday.new(:url => @main_uri) do |config|
27
+ config.request :url_encoded # form-encode POST params
28
+ config.adapter Faraday.default_adapter # make requests with Net::HTTP
29
+ end
30
+ connection
31
+ end
32
+ end
33
+
34
+ class << self
35
+ attr_accessor :configuration
36
+ end
37
+
38
+ def self.configure # Accepts a block for configurations
39
+ self.configuration = Configuration.new
40
+ yield configuration
41
+ end
42
+
43
+ end
@@ -0,0 +1,36 @@
1
+ module Payline
2
+
3
+ # Initialize a confirmation request:
4
+ # Payline::Confirmation.new(id_get: ID_GET, trans_id: TRANS_ID)
5
+ #
6
+ # Make the request by calling 'request' on the object:
7
+ # confirmation_instance.request
8
+ #
9
+ # If the request was successful, it returns an instance of Payline::Response with a true value for 'valid?'.
10
+ # Beware that in case of an error in payment, it'll rise a respective error based on the received response.
11
+ #
12
+ # @example
13
+ # confirmation = Payline::Confirmation.new(id_get: 34687545, trans_id: 5463466)
14
+ # response = confirmation.request
15
+ # response.valid?
16
+ # => true
17
+ #
18
+
19
+ class Confirmation
20
+ attr_accessor :id_get, :trans_id
21
+
22
+ def initialize(options = {})
23
+ @connection = Payline.configuration.connection
24
+ @id_get = options[:id_get]
25
+ @trans_id = options[:trans_id]
26
+ @response = Response.new
27
+ end
28
+
29
+ def request
30
+ response = @connection.post Payline.configuration.confirmation_uri, { api: Payline.configuration.api_token, id_get: @id_get, trans_id: @trans_id }
31
+ @response.body = response.body
32
+ @response.validate_confirmation
33
+ end
34
+
35
+ end
36
+ end
@@ -0,0 +1,29 @@
1
+ module Payline
2
+ # All Payline errors, catch this to catch all following exceptions
3
+ class PaylineError < StandardError; end
4
+
5
+ # If the provided token was wrong or no api_token was provided
6
+ class BadAPIToken < PaylineError; end
7
+
8
+ # If the requested amount was invalid or was not provided
9
+ class BadAmount < PaylineError; end
10
+
11
+ # If redirect_uri was not provided
12
+ class BadRedirectURI < PaylineError; end
13
+
14
+ # If provided trans_id was invalid
15
+ class BadTransId < PaylineError; end
16
+
17
+ # If provided id_get was wrong
18
+ class BadIdGet < PaylineError; end
19
+
20
+ # If the transaction has failed
21
+ class FailedTransaction < PaylineError; end
22
+
23
+ # If somehow it receives a bad/invalid response
24
+ class InvalidResponse < PaylineError; end
25
+
26
+ # If the requested gateway was not found
27
+ class NotFoundError < PaylineError; end
28
+
29
+ end
@@ -0,0 +1,65 @@
1
+ module Payline
2
+ class Response
3
+ attr_accessor :body
4
+ attr_reader :valid, :gateway, :id_get
5
+
6
+ def initialize
7
+ @valid = false
8
+ end
9
+
10
+ def validate_request # Respective to Payline::Charge
11
+ case @body
12
+ when '-1'
13
+ raise BadAPIToken, 'The API token is invalid'
14
+ when '-2'
15
+ raise BadAmount, 'The requested amount is invalid'
16
+ when '-3'
17
+ raise BadRedirectURI, 'Redirect URI is invalid (probably nil)'
18
+ when '-4'
19
+ raise NotFoundError, 'The requested gateway was not found'
20
+ else
21
+ raise InvalidResponse, 'Response is not valid' unless is_integer? @body # If the response was a float
22
+ if @body.to_i > 0
23
+ @id_get = @body.to_i
24
+ generate_gateway
25
+ @valid = true
26
+ else
27
+ raise InvalidResponse, 'Response is not valid'
28
+ end
29
+ end
30
+ self
31
+ end
32
+
33
+ def validate_confirmation # Respective to Payline::Confirmation
34
+ case @body
35
+ when '-1'
36
+ raise BadAPIToken, 'The API token is invalid'
37
+ when '-2'
38
+ raise BadTransId, 'The trans_id is invalid'
39
+ when '-3'
40
+ raise BadIdGet, 'The id_get is invalid'
41
+ when '-4'
42
+ raise FailedTransaction, 'The transaction has failed'
43
+ when '1'
44
+ @valid = true
45
+ else
46
+ raise InvalidResponse, 'Response is not valid'
47
+ end
48
+ self
49
+ end
50
+
51
+ def valid? # To see if the request is valid or not
52
+ @valid
53
+ end
54
+
55
+ private
56
+ def generate_gateway # To generate a gateway based on a valid id_get
57
+ @gateway = Payline.configuration.base_gateway + @id_get.to_s
58
+ end
59
+
60
+ def is_integer? string
61
+ true if Integer(string) rescue false
62
+ end
63
+
64
+ end
65
+ end
@@ -0,0 +1,3 @@
1
+ module Payline
2
+ VERSION = "0.1.0"
3
+ end
data/payline.gemspec ADDED
@@ -0,0 +1,29 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'payline/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "payline.rb"
8
+ spec.version = Payline::VERSION
9
+ spec.authors = ["Arvin Jenabi"]
10
+ spec.email = ["Arvinje@gmail.com"]
11
+
12
+ spec.summary = %q{An API client to make payments with Payline.ir}
13
+ spec.description = %q{Easily integrate Payline.ir service to your app and accept IRR payments.}
14
+ spec.homepage = "https://github.com/Arvinje/payline.rb"
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", '~> 0.9.1'
23
+
24
+ spec.add_development_dependency "bundler", "~> 1.10"
25
+ spec.add_development_dependency "rake", "~> 10.0"
26
+ spec.add_development_dependency "rspec", "~> 3.3.0"
27
+ spec.add_development_dependency "guard-rspec", "~> 4.6.4"
28
+ spec.add_development_dependency "terminal-notifier-guard", "~> 1.6.4"
29
+ end
metadata ADDED
@@ -0,0 +1,146 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: payline.rb
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Arvin Jenabi
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2015-08-30 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.9.1
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 0.9.1
27
+ - !ruby/object:Gem::Dependency
28
+ name: bundler
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '1.10'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1.10'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rake
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '10.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '10.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rspec
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: 3.3.0
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: 3.3.0
69
+ - !ruby/object:Gem::Dependency
70
+ name: guard-rspec
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: 4.6.4
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: 4.6.4
83
+ - !ruby/object:Gem::Dependency
84
+ name: terminal-notifier-guard
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: 1.6.4
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: 1.6.4
97
+ description: Easily integrate Payline.ir service to your app and accept IRR payments.
98
+ email:
99
+ - Arvinje@gmail.com
100
+ executables: []
101
+ extensions: []
102
+ extra_rdoc_files: []
103
+ files:
104
+ - ".gitignore"
105
+ - ".rspec"
106
+ - ".travis.yml"
107
+ - Gemfile
108
+ - Guardfile
109
+ - LICENSE.txt
110
+ - README.md
111
+ - Rakefile
112
+ - bin/console
113
+ - bin/setup
114
+ - lib/payline.rb
115
+ - lib/payline/charge.rb
116
+ - lib/payline/configuration.rb
117
+ - lib/payline/confirmation.rb
118
+ - lib/payline/errors.rb
119
+ - lib/payline/response.rb
120
+ - lib/payline/version.rb
121
+ - payline.gemspec
122
+ homepage: https://github.com/Arvinje/payline.rb
123
+ licenses:
124
+ - MIT
125
+ metadata: {}
126
+ post_install_message:
127
+ rdoc_options: []
128
+ require_paths:
129
+ - lib
130
+ required_ruby_version: !ruby/object:Gem::Requirement
131
+ requirements:
132
+ - - ">="
133
+ - !ruby/object:Gem::Version
134
+ version: '0'
135
+ required_rubygems_version: !ruby/object:Gem::Requirement
136
+ requirements:
137
+ - - ">="
138
+ - !ruby/object:Gem::Version
139
+ version: '0'
140
+ requirements: []
141
+ rubyforge_project:
142
+ rubygems_version: 2.4.5.1
143
+ signing_key:
144
+ specification_version: 4
145
+ summary: An API client to make payments with Payline.ir
146
+ test_files: []