payline 0.0.1

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: 4c3ea74c226badf6cd8c31dbd2faccf27f5bafcf
4
+ data.tar.gz: ab1f60398460581a2cb58910eff54725e96ab120
5
+ SHA512:
6
+ metadata.gz: aaac69b5549f2fca3a60878d00f36b6ebba837a97f89decdd5fe14c70a79ba5f2d7556be18a20489ae8c84afbe0f0ef7baad945bfa679148d5e5e749be0114f2
7
+ data.tar.gz: ced66d4ecce5c4436166de4b98920c0288dd66c5ae27dc804ee49c2c31145bed3b00fc75f8f33143b995f5a885e5878481163a06ac6223d6e7dfe7935586582d
data/.editorconfig ADDED
@@ -0,0 +1,21 @@
1
+ # EditorConfig helps developers define and maintain consistent
2
+ # coding styles between different editors and IDEs
3
+ # editorconfig.org
4
+
5
+ root = true
6
+
7
+
8
+ [*]
9
+
10
+ # Change these settings to your own preference
11
+ indent_style = space
12
+ indent_size = 2
13
+
14
+ # We recommend you to keep these unchanged
15
+ end_of_line = lf
16
+ charset = utf-8
17
+ trim_trailing_whitespace = true
18
+ insert_final_newline = true
19
+
20
+ [*.md]
21
+ trim_trailing_whitespace = false
data/.gitignore ADDED
@@ -0,0 +1,18 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ Gemfile.lock
7
+ InstalledFiles
8
+ _yardoc
9
+ coverage
10
+ doc/
11
+ lib/bundler/man
12
+ pkg
13
+ rdoc
14
+ spec/reports
15
+ test/tmp
16
+ test/version_tmp
17
+ tmp
18
+ test.rb
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/LICENSE.txt ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2014 FireWorks Innovation
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,80 @@
1
+ Payline Api for Ruby
2
+ =========================
3
+
4
+ Wrapper around the Payline Api.
5
+
6
+ [Payline](http://www.payline.co.za/) allows you to proccess credit cards.
7
+
8
+
9
+ Contents
10
+ --------
11
+
12
+ - [How to Install](#how-to-install)
13
+ - [Configuration](#configuration)
14
+ - [Usage](#usage)
15
+
16
+ How to Install
17
+ --------------
18
+
19
+ Add this line to your application's Gemfile:
20
+
21
+ gem 'payline'
22
+
23
+ And then execute:
24
+
25
+ $ bundle install
26
+
27
+ Or install it yourself as:
28
+
29
+ $ gem install payline
30
+
31
+
32
+ ## Configuration
33
+
34
+ The best would be to place this in `config/initializers/payline.rb`
35
+
36
+ ```ruby
37
+ Payline.configure do |c|
38
+ c.company_name = 'Company Name'
39
+ c.contact_email = 'test@test.com'
40
+
41
+ c.sender = "sender_id"
42
+ c.secret = "secret"
43
+ c.user_login = "login"
44
+ c.user_password = "password"
45
+ c.transaction_mode = "INTEGRATOR_TEST"
46
+ c.channel = "channel_id"
47
+ end
48
+ ```
49
+
50
+ ## Basic usage
51
+
52
+ ```ruby
53
+ client = Payline.client
54
+ guid = SecureRandom.uuid
55
+ amount = "1.00"
56
+
57
+ card = {
58
+ account_type: 'MASTER', # VISA
59
+ card_number: '1234 1234 1234 1234',
60
+ expiry_year: '2015',
61
+ expiry_month: '01',
62
+ card_holder: 'Mr Y Name',
63
+ cvv: '123'
64
+ }
65
+
66
+ # Reponse can be used in subsequent calls
67
+ response = client.reserve(guid, amount, card)
68
+
69
+ client.reverse(response, amount)
70
+
71
+ client.capture(response, amount)
72
+ ```
73
+
74
+ ## Contributing
75
+
76
+ 1. Fork it ( http://github.com/fireworksinnovation/payline-ruby/fork )
77
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
78
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
79
+ 4. Push to the branch (`git push origin my-new-feature`)
80
+ 5. Create new Pull Request
data/Rakefile ADDED
@@ -0,0 +1 @@
1
+ require "bundler/gem_tasks"
data/lib/payline.rb ADDED
@@ -0,0 +1,35 @@
1
+ require 'net/http'
2
+ require 'net/https'
3
+ require 'json'
4
+
5
+ require 'payline/version'
6
+ require 'payline/urls'
7
+ require 'payline/exceptions'
8
+ require 'payline/response_handler'
9
+ require 'payline/configuration'
10
+ require 'payline/reserve_response'
11
+ require 'payline/client'
12
+
13
+
14
+
15
+ module Payline
16
+ class << self
17
+ attr_writer :configuration
18
+ end
19
+
20
+ def self.client
21
+ Client.new(configuration)
22
+ end
23
+
24
+ def self.configuration
25
+ @configuration ||= Configuration.new
26
+ end
27
+
28
+ def self.reset
29
+ @configuration = Configuration.new
30
+ end
31
+
32
+ def self.configure
33
+ yield(configuration)
34
+ end
35
+ end
@@ -0,0 +1,87 @@
1
+ module Payline
2
+ class Client
3
+
4
+ def initialize(config)
5
+ @config = config
6
+ @response_handler = Payline::ResponseHandler.new
7
+ end
8
+
9
+ def reserve(guid, amount, credit_card)
10
+ params = {
11
+ 'PAYMENT.CODE' => "CC.PA",
12
+ 'PRESENTATION.AMOUNT' => amount,
13
+ 'PRESENTATION.CURRENCY' => @config.currency,
14
+
15
+ 'ACCOUNT.BRAND' => credit_card[:account_type],
16
+ 'ACCOUNT.NUMBER' => credit_card[:card_number],
17
+ 'ACCOUNT.EXPIRY_MONTH' => credit_card[:expiry_month],
18
+ 'ACCOUNT.EXPIRY_YEAR' => credit_card[:expiry_year],
19
+ 'ACCOUNT.HOLDER' => credit_card[:card_holder],
20
+ 'ACCOUNT.VERIFICATION' => credit_card[:cvv],
21
+
22
+ 'NAME.COMPANY' => @config.company_name,
23
+ 'CONTACT.EMAIL' => @config.contact_email,
24
+
25
+ # need to be here but currently not being passed in
26
+ 'ADDRESS.STREET' => 'na',
27
+ 'ADDRESS.ZIP' => 'na',
28
+ 'ADDRESS.CITY' => 'na',
29
+ 'ADDRESS.STATE' => 'na',
30
+ 'ADDRESS.COUNTRY' => 'ZA',
31
+
32
+ }
33
+ hash = do_request(params)
34
+ merchant_id = hash['IDENTIFICATION.TRANSACTIONID']
35
+ ref_id = hash['IDENTIFICATION.UNIQUEID']
36
+ Payline::ReserveResponse.new(merchant_id, ref_id)
37
+ end
38
+
39
+ def capture(reserve_response, amount)
40
+ params = {
41
+ 'PRESENTATION.CURRENCY' => @config.currency,
42
+ 'PAYMENT.CODE' => "CC.CP",
43
+ 'PRESENTATION.AMOUNT' => amount,
44
+ 'IDENTIFICATION.TRANSACTIONID'=>reserve_response.merchant_reference,
45
+ 'IDENTIFICATION.REFERENCEID'=> reserve_response.transaction_id
46
+ }
47
+ do_request(params)
48
+ end
49
+
50
+ def reverse(reserve_response, amount)
51
+ params = {
52
+ 'PRESENTATION.CURRENCY' => @config.currency,
53
+ 'PAYMENT.CODE' => "CC.RV",
54
+ 'PRESENTATION.AMOUNT' => amount,
55
+ 'IDENTIFICATION.TRANSACTIONID'=> reserve_response.merchant_reference,
56
+ 'IDENTIFICATION.REFERENCEID'=> reserve_response.transaction_id
57
+ }
58
+ do_request(params)
59
+ end
60
+
61
+ private
62
+
63
+ def do_request(params)
64
+ uri = URI(Payline::Urls::PAYMENT)
65
+ http = Net::HTTP.new(uri.host, uri.port)
66
+ http.use_ssl = true
67
+ req = Net::HTTP::Post.new(uri.path)
68
+ request_data = params.merge(basic_auth)
69
+ req.set_form_data(request_data)
70
+ res = http.request(req)
71
+ hash = @response_handler.parse_and_handle_errors(res.body)
72
+ hash
73
+ end
74
+
75
+ def basic_auth
76
+ {
77
+ 'SECURITY.SENDER' => @config.sender,
78
+ 'TRANSACTION.CHANNEL' => @config.channel,
79
+ 'TRANSACTION.MODE' => @config.transaction_mode,
80
+ 'USER.LOGIN' => @config.user_login,
81
+ 'USER.PWD' => @config.user_password,
82
+ 'TRANSACTION.RESPONSE'=>'SYNC'
83
+ }
84
+ end
85
+
86
+ end
87
+ end
@@ -0,0 +1,17 @@
1
+ module Payline
2
+ class Configuration
3
+ attr_accessor :sender
4
+ attr_accessor :user_login
5
+ attr_accessor :user_password
6
+ attr_accessor :secret
7
+ attr_accessor :transaction_mode
8
+ attr_accessor :channel
9
+ attr_accessor :currency
10
+ attr_accessor :company_name
11
+ attr_accessor :contact_email
12
+
13
+ def initialize
14
+ @currency = "ZAR"
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,3 @@
1
+ module Payline
2
+ class Error < StandardError; end
3
+ end
@@ -0,0 +1,11 @@
1
+ module Payline
2
+ class ReserveResponse
3
+ attr_reader :merchant_reference
4
+ attr_reader :transaction_id
5
+
6
+ def initialize(merchant_reference, transaction_id)
7
+ @merchant_reference = merchant_reference
8
+ @transaction_id = transaction_id
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,26 @@
1
+ module Payline
2
+ class ResponseHandler
3
+
4
+ def parse(text)
5
+ # CGI by default returns an hash of arrays even if there is one element (is is the norm)
6
+ hash = CGI::parse(text)
7
+ hash.each {|k, v|
8
+ hash[k] = v.length == 1 ? v.first : v
9
+ }
10
+ hash
11
+ end
12
+
13
+ def parse_and_handle_errors(text)
14
+ hash = parse(text)
15
+ handle_errors(hash)
16
+ hash
17
+ end
18
+
19
+ def handle_errors(hash)
20
+ if hash['PROCESSING.REASON.CODE'].to_s != '00'
21
+ # Error message should be friendly
22
+ raise Payline::Error.new(hash['PROCESSING.RETURN'])
23
+ end
24
+ end
25
+ end
26
+ end
@@ -0,0 +1,5 @@
1
+ module Payline
2
+ module Urls
3
+ PAYMENT = "https://ctpe.net/frontend/ExecutePayment"
4
+ end
5
+ end
@@ -0,0 +1,3 @@
1
+ module Payline
2
+ VERSION = "0.0.1"
3
+ end
data/payline.gemspec ADDED
@@ -0,0 +1,24 @@
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"
8
+ spec.version = Payline::VERSION
9
+ spec.authors = ["David Rubin"]
10
+ spec.email = ["david@fireid.com"]
11
+ spec.summary = %q{Wrapper around Payline http post api}
12
+ spec.description = %q{Wrapper around Payline http post api}
13
+ spec.homepage = "https://github.com/fireworksinnovation/payline"
14
+ spec.license = "MIT"
15
+
16
+ spec.files = `git ls-files -z`.split("\x0")
17
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
+ spec.require_paths = ["lib"]
20
+
21
+ spec.add_development_dependency "bundler", "~> 1.5"
22
+ spec.add_development_dependency "rake"
23
+ spec.add_development_dependency 'rspec', '~> 2.9.0'
24
+ end
@@ -0,0 +1,39 @@
1
+ require 'spec_helper'
2
+
3
+ describe Payline::ResponseHandler do
4
+ before do
5
+ @response = Payline::ResponseHandler.new
6
+ end
7
+
8
+ it 'Can parse out text' do
9
+ data = "PROCESSING.RISK_SCORE=0&P3.VALIDATION=ACK&CLEARING.DESCRIPTOR=7092.5040.4626&TRANSACTION.CHANNEL=8a8394c3461960d701461ac26f1c071f&PROCESSING.REASON.CODE=00&ADDRESS.CITY=na&PROCESSING.CODE=CC.PA.90.00&FRONTEND.REQUEST.CANCELLED=false&PROCESSING.REASON=Successful+Processing&FRONTEND.MODE=DEFAULT&CLEARING.FXSOURCE=INTERN&CLEARING.AMOUNT=1.00&PROCESSING.RESULT=ACK&NAME.SALUTATION=NONE&POST.VALIDATION=ACK&CONTACT.EMAIL=test%40test.com&CLEARING.CURRENCY=ZAR&FRONTEND.SESSION_ID=&PROCESSING.STATUS.CODE=90&PRESENTATION.CURRENCY=ZAR&PAYMENT.CODE=CC.PA&PROCESSING.RETURN.CODE=000.100.110&CONTACT.IP=10.3.20.38&PROCESSING.STATUS=NEW&FRONTEND.CC_LOGO=images%2Fvisa_mc.gif&PRESENTATION.AMOUNT=1.00&IDENTIFICATION.UNIQUEID=8a839482461e719d01461eb59f784012&IDENTIFICATION.SHORTID=7092.5040.4626&CLEARING.FXRATE=1.0&PROCESSING.TIMESTAMP=2014-05-21+12%3A15%3A57&ADDRESS.COUNTRY=ZA&ADDRESS.STATE=na&RESPONSE.VERSION=1.0&TRANSACTION.MODE=INTEGRATOR_TEST&TRANSACTION.RESPONSE=SYNC&PROCESSING.RETURN=Request+successfully+processed+in+%27Merchant+in+Integrator+Test+Mode%27&ADDRESS.STREET=na&CLEARING.FXDATE=2014-05-21+12%3A15%3A57&ADDRESS.ZIP=na\r\n"
10
+ hash = @response.parse(data)
11
+ hash['PROCESSING.REASON.CODE'].should eq('00')
12
+ hash['PROCESSING.RISK_SCORE'].should eq('0')
13
+ hash['P3.VALIDATION'].should eq('ACK')
14
+ hash['FRONTEND.REQUEST.CANCELLED'].should eq('false')
15
+ end
16
+
17
+ it 'Can handle errors' do
18
+ hash = {
19
+ 'PROCESSING.REASON.CODE'=> '1234',
20
+ 'PROCESSING.RETURN'=> 'This is the error'
21
+ }
22
+ expect{@response.handle_errors(hash)}.to raise_error(Payline::Error)
23
+ expect{@response.handle_errors(hash)}.to raise_error('This is the error')
24
+ end
25
+
26
+ it 'Can deal with success' do
27
+ hash = {
28
+ 'PROCESSING.REASON.CODE'=> '00',
29
+ 'PROCESSING.RETURN'=> 'Successful'
30
+ }
31
+ @response.handle_errors(hash)
32
+ end
33
+
34
+ it 'Parses and checks' do
35
+ data = 'PROCESSING.REASON.CODE=00&PROCESSING.RETURN=Successful&NOMATTER=nomatter'
36
+ hash = @response.parse_and_handle_errors(data)
37
+ hash['NOMATTER'].should eq('nomatter')
38
+ end
39
+ end
data/spec/results.txt ADDED
@@ -0,0 +1,8 @@
1
+ failed
2
+
3
+
4
+ TRANSACTION.CHANNEL=8a8394c3461960d701461ac26f1c071f&PRESENTATION.CURRENCY=ZAR&IDENTIFICATION.UNIQUEID=8a839486461e719e01461eaedb2f27cd&PAYMENT.CODE=CC.PA&FRONTEND.CC_LOGO=images%2Fvisa_mc.gif&PROCESSING.STATUS=REJECTED_VALIDATION&ADDRESS.STREET=na&CONTACT.IP=10.3.20.36&FRONTEND.MODE=DEFAULT&FRONTEND.REQUEST.CANCELLED=false&PROCESSING.RETURN=invalid+credit+card+brand&PROCESSING.REASON=Account+Validation&ADDRESS.STATE=na&PROCESSING.STATUS.CODE=70&TRANSACTION.MODE=INTEGRATOR_TEST&POST.VALIDATION=ACK&CONTACT.EMAIL=fireworks-services%40fireid.com&PROCESSING.TIMESTAMP=2014-05-21+12%3A08%3A34&ADDRESS.CITY=na&PROCESSING.RETURN.CODE=100.100.501&RESPONSE.VERSION=1.0&TRANSACTION.RESPONSE=SYNC&P3.VALIDATION=ACK&PROCESSING.CODE=CC.PA.70.40&FRONTEND.SESSION_ID=&PROCESSING.REASON.CODE=40&IDENTIFICATION.SHORTID=8838.6766.8754&NAME.SALUTATION=NONE&PROCESSING.RESULT=NOK&PRESENTATION.AMOUNT=1.00&ADDRESS.COUNTRY=ZA&ADDRESS.ZIP=na\r\n
5
+
6
+
7
+ SUCCESS
8
+ PROCESSING.RISK_SCORE=0&P3.VALIDATION=ACK&CLEARING.DESCRIPTOR=7092.5040.4626&TRANSACTION.CHANNEL=8a8394c3461960d701461ac26f1c071f&PROCESSING.REASON.CODE=00&ADDRESS.CITY=na&PROCESSING.CODE=CC.PA.90.00&FRONTEND.REQUEST.CANCELLED=false&PROCESSING.REASON=Successful+Processing&FRONTEND.MODE=DEFAULT&CLEARING.FXSOURCE=INTERN&CLEARING.AMOUNT=1.00&PROCESSING.RESULT=ACK&NAME.SALUTATION=NONE&POST.VALIDATION=ACK&CONTACT.EMAIL=fireworks-services%40fireid.com&CLEARING.CURRENCY=ZAR&FRONTEND.SESSION_ID=&PROCESSING.STATUS.CODE=90&PRESENTATION.CURRENCY=ZAR&PAYMENT.CODE=CC.PA&PROCESSING.RETURN.CODE=000.100.110&CONTACT.IP=10.3.20.38&PROCESSING.STATUS=NEW&FRONTEND.CC_LOGO=images%2Fvisa_mc.gif&PRESENTATION.AMOUNT=1.00&IDENTIFICATION.UNIQUEID=8a839482461e719d01461eb59f784012&IDENTIFICATION.SHORTID=7092.5040.4626&CLEARING.FXRATE=1.0&PROCESSING.TIMESTAMP=2014-05-21+12%3A15%3A57&ADDRESS.COUNTRY=ZA&ADDRESS.STATE=na&RESPONSE.VERSION=1.0&TRANSACTION.MODE=INTEGRATOR_TEST&TRANSACTION.RESPONSE=SYNC&PROCESSING.RETURN=Request+successfully+processed+in+%27Merchant+in+Integrator+Test+Mode%27&ADDRESS.STREET=na&CLEARING.FXDATE=2014-05-21+12%3A15%3A57&ADDRESS.ZIP=na\r\n
@@ -0,0 +1,9 @@
1
+ require 'rubygems'
2
+ require 'bundler/setup'
3
+ # our gem
4
+ require 'payline'
5
+
6
+
7
+ RSpec.configure do |config|
8
+ # some (optional) config here
9
+ end
metadata ADDED
@@ -0,0 +1,107 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: payline
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - David Rubin
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-05-21 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ~>
18
+ - !ruby/object:Gem::Version
19
+ version: '1.5'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ version: '1.5'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - '>='
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
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: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ~>
46
+ - !ruby/object:Gem::Version
47
+ version: 2.9.0
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ~>
53
+ - !ruby/object:Gem::Version
54
+ version: 2.9.0
55
+ description: Wrapper around Payline http post api
56
+ email:
57
+ - david@fireid.com
58
+ executables: []
59
+ extensions: []
60
+ extra_rdoc_files: []
61
+ files:
62
+ - .editorconfig
63
+ - .gitignore
64
+ - Gemfile
65
+ - LICENSE.txt
66
+ - README.md
67
+ - Rakefile
68
+ - lib/payline.rb
69
+ - lib/payline/client.rb
70
+ - lib/payline/configuration.rb
71
+ - lib/payline/exceptions.rb
72
+ - lib/payline/reserve_response.rb
73
+ - lib/payline/response_handler.rb
74
+ - lib/payline/urls.rb
75
+ - lib/payline/version.rb
76
+ - payline.gemspec
77
+ - spec/response_parser_spec.rb
78
+ - spec/results.txt
79
+ - spec/spec_helper.rb
80
+ homepage: https://github.com/fireworksinnovation/payline
81
+ licenses:
82
+ - MIT
83
+ metadata: {}
84
+ post_install_message:
85
+ rdoc_options: []
86
+ require_paths:
87
+ - lib
88
+ required_ruby_version: !ruby/object:Gem::Requirement
89
+ requirements:
90
+ - - '>='
91
+ - !ruby/object:Gem::Version
92
+ version: '0'
93
+ required_rubygems_version: !ruby/object:Gem::Requirement
94
+ requirements:
95
+ - - '>='
96
+ - !ruby/object:Gem::Version
97
+ version: '0'
98
+ requirements: []
99
+ rubyforge_project:
100
+ rubygems_version: 2.0.14
101
+ signing_key:
102
+ specification_version: 4
103
+ summary: Wrapper around Payline http post api
104
+ test_files:
105
+ - spec/response_parser_spec.rb
106
+ - spec/results.txt
107
+ - spec/spec_helper.rb