gmxcheckout 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +9 -0
- data/.travis.yml +5 -0
- data/Gemfile +2 -0
- data/LICENSE.txt +21 -0
- data/README.md +81 -0
- data/Rakefile +10 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/gmxcheckout.gemspec +31 -0
- data/lib/gmxcheckout/api.rb +30 -0
- data/lib/gmxcheckout/base.rb +25 -0
- data/lib/gmxcheckout/json_middleware.rb +17 -0
- data/lib/gmxcheckout/model.rb +6 -0
- data/lib/gmxcheckout/models/notification.rb +50 -0
- data/lib/gmxcheckout/models/transaction.rb +11 -0
- data/lib/gmxcheckout/response.rb +20 -0
- data/lib/gmxcheckout/subscriptions.rb +73 -0
- data/lib/gmxcheckout/version.rb +3 -0
- data/lib/gmxcheckout.rb +38 -0
- metadata +161 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 4c68f89645f170e00a84f9da926ea5ab2b7bb05b
|
4
|
+
data.tar.gz: f6eaa493caec54c102355b92443653823c8ff472
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 5b3970e16aa005269c3d62462fb853fb562d2083025f5114e5d11f5d36eadf9cb2c2c2e96a36b29259d47fdc9e28ec0d91b59423fd4321f593d3991f3567ddc3
|
7
|
+
data.tar.gz: ad43d3182ea19a0fcd510b5f0784921f7a720944bf961276e664ee915c126b14a0a241d8a61f008f3a1e1c268c2d3d9856757e9507b5292050b5502528c6ca45
|
data/.gitignore
ADDED
data/.travis.yml
ADDED
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2017 Rainer Borene
|
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,81 @@
|
|
1
|
+
# gmxCheckout
|
2
|
+
|
3
|
+
[![Build Status](https://travis-ci.org/rainerborene/gmxcheckout.svg)](https://travis-ci.org/rainerborene/gmxcheckout)
|
4
|
+
|
5
|
+
A simple library to charge your customers in a monthly basis using
|
6
|
+
[gmxCheckout](https://www.gmxcheckout.com.br/) payment system.
|
7
|
+
|
8
|
+
## Installation
|
9
|
+
|
10
|
+
Add this line to your application's Gemfile:
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
gem 'gmxcheckout'
|
14
|
+
```
|
15
|
+
|
16
|
+
And then execute:
|
17
|
+
|
18
|
+
$ bundle
|
19
|
+
|
20
|
+
Or install it yourself as:
|
21
|
+
|
22
|
+
$ gem install gmxcheckout
|
23
|
+
|
24
|
+
## Usage
|
25
|
+
|
26
|
+
Start by configuring the required `api_key` in your initializer.
|
27
|
+
|
28
|
+
```ruby
|
29
|
+
GmxCheckout.configure do |config|
|
30
|
+
config.api_key = ENV['GMXCHECKOUT_API_KEY']
|
31
|
+
end
|
32
|
+
```
|
33
|
+
|
34
|
+
Now you might want to use this pseudo-code in your `User` model on `after_commit` callback.
|
35
|
+
|
36
|
+
```ruby
|
37
|
+
def charge_credit_card
|
38
|
+
gmx = GmxCheckout::API.new
|
39
|
+
|
40
|
+
response = gmx.subscriptions.create \
|
41
|
+
amounts: [199_00],
|
42
|
+
browser: extras[:browser],
|
43
|
+
remote_ip: extras[:remote_ip],
|
44
|
+
notification_url: extras[:notification_url],
|
45
|
+
description: 'Awesome SaaS',
|
46
|
+
invoice_name: 'Awesome SaaS',
|
47
|
+
address: subscription.address,
|
48
|
+
customer: {
|
49
|
+
name: user.full_name,
|
50
|
+
email: user.email,
|
51
|
+
phone: subscription.phone,
|
52
|
+
cpf: CPF.new(subscription.cpf).stripped
|
53
|
+
},
|
54
|
+
credit_card: subscription.credit_card_params.merge(
|
55
|
+
holder_name: user.full_name
|
56
|
+
)
|
57
|
+
|
58
|
+
if response.success?
|
59
|
+
subscription.code = response.body.subscription_code
|
60
|
+
subscription.status = response.body.subscription_status
|
61
|
+
subscription.expires_at = 30.days.from_now
|
62
|
+
subscription.save
|
63
|
+
else
|
64
|
+
invalidate_credit_card
|
65
|
+
end
|
66
|
+
end
|
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/rainerborene/gmxcheckout.
|
78
|
+
|
79
|
+
## License
|
80
|
+
|
81
|
+
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "gmxcheckout"
|
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
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require "irb"
|
14
|
+
IRB.start(__FILE__)
|
data/bin/setup
ADDED
data/gmxcheckout.gemspec
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'gmxcheckout/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = 'gmxcheckout'
|
8
|
+
spec.version = GmxCheckout::VERSION
|
9
|
+
spec.authors = ['Rainer Borene']
|
10
|
+
spec.email = ['rainerborene@gmail.com']
|
11
|
+
|
12
|
+
spec.summary = 'Charge your customers in a monthly basis using gmxCheckout'
|
13
|
+
spec.description = 'A simple and easy to use library to integrate with gmxCheckout'
|
14
|
+
spec.homepage = 'https://github.com/rainerborene/gmxcheckoR'
|
15
|
+
spec.license = 'MIT'
|
16
|
+
|
17
|
+
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
18
|
+
f.match(%r{^(test|spec|features)/})
|
19
|
+
end
|
20
|
+
|
21
|
+
spec.require_paths = ['lib']
|
22
|
+
|
23
|
+
spec.add_dependency 'faraday'
|
24
|
+
spec.add_dependency 'hashie'
|
25
|
+
spec.add_dependency 'multi_json'
|
26
|
+
|
27
|
+
spec.add_development_dependency 'bundler', '~> 1.15'
|
28
|
+
spec.add_development_dependency 'rake', '~> 10.0'
|
29
|
+
spec.add_development_dependency 'minitest', '~> 5.0'
|
30
|
+
spec.add_development_dependency 'vcr'
|
31
|
+
end
|
@@ -0,0 +1,30 @@
|
|
1
|
+
module GmxCheckout
|
2
|
+
class API
|
3
|
+
extend Forwardable
|
4
|
+
|
5
|
+
def_delegators :@connection, :get, :post, :put, :patch
|
6
|
+
|
7
|
+
def self.build_notification(params)
|
8
|
+
Models::Notification.new params
|
9
|
+
end
|
10
|
+
|
11
|
+
def initialize(api_key = nil)
|
12
|
+
@api_key = api_key
|
13
|
+
@connection = Faraday.new url: 'https://www.gmxcheckout.com.br' do |conn|
|
14
|
+
conn.use JsonMiddleware
|
15
|
+
conn.request :url_encoded
|
16
|
+
conn.adapter :net_http
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
def subscriptions
|
21
|
+
@subscriptions ||= Subscriptions.new(self)
|
22
|
+
end
|
23
|
+
|
24
|
+
def api_key
|
25
|
+
@api_key || GmxCheckout.api_key
|
26
|
+
end
|
27
|
+
|
28
|
+
alias key api_key
|
29
|
+
end
|
30
|
+
end
|
@@ -0,0 +1,25 @@
|
|
1
|
+
module GmxCheckout
|
2
|
+
class Base
|
3
|
+
attr_reader :api
|
4
|
+
|
5
|
+
def initialize(api)
|
6
|
+
@api = api
|
7
|
+
end
|
8
|
+
|
9
|
+
def process_transaction(response)
|
10
|
+
Response.new response.body, Models::Transaction
|
11
|
+
end
|
12
|
+
|
13
|
+
def process_body(response)
|
14
|
+
Hashie::Mash.new response.body
|
15
|
+
end
|
16
|
+
|
17
|
+
def prepare!(params)
|
18
|
+
params.tap do |hash|
|
19
|
+
hash['empresa.hashEmpresa'] = api.key
|
20
|
+
hash['restApi'] = true
|
21
|
+
hash.compact!
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
module GmxCheckout
|
2
|
+
class JsonMiddleware < Faraday::Response::Middleware
|
3
|
+
dependency 'multi_json'
|
4
|
+
|
5
|
+
def parse(body)
|
6
|
+
MultiJson.load clean!(body)
|
7
|
+
end
|
8
|
+
|
9
|
+
private
|
10
|
+
|
11
|
+
def clean!(body)
|
12
|
+
body.delete!('\\')
|
13
|
+
.gsub!(/^"/, '')
|
14
|
+
.gsub!(/[";\n]+$/, '')
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
@@ -0,0 +1,50 @@
|
|
1
|
+
module GmxCheckout
|
2
|
+
module Models
|
3
|
+
class Notification < Model
|
4
|
+
# property :subscription_code, from: 'recorrencia.idRecorrenciaEmpresa'
|
5
|
+
# property :transaction_amount, from: 'venda.valor'
|
6
|
+
# property :transaction_owner_id, from: 'venda.idVendaEmpresa'
|
7
|
+
|
8
|
+
property :subscription_code, from: 'recorrencia.idRecorrencia'
|
9
|
+
|
10
|
+
property :subscription_status, from: 'recorrencia.status',
|
11
|
+
with: -> (value) { value.to_i }
|
12
|
+
|
13
|
+
property :subscription_created_at, from: 'recorrencia.dataRegistro',
|
14
|
+
with: -> (value) { value.to_date }
|
15
|
+
|
16
|
+
property :subscription_latest_payment,
|
17
|
+
from: 'recorrencia.valorUltimoProcessamento'
|
18
|
+
|
19
|
+
property :transaction_date, from: 'venda.dataRegistro',
|
20
|
+
with: -> (value) { value.to_date }
|
21
|
+
|
22
|
+
property :transaction_amount, from: 'venda.valor',
|
23
|
+
with: -> (value) { value.to_i }
|
24
|
+
|
25
|
+
property :transaction_id, from: 'venda.idVenda',
|
26
|
+
with: -> (value) { value.to_i }
|
27
|
+
|
28
|
+
property :transaction_status, from: 'venda.status',
|
29
|
+
with: -> (value) { value.to_i }
|
30
|
+
|
31
|
+
property :transaction_gateway_id, from: 'venda.tid'
|
32
|
+
property :transaction_gateway_uuid, from: 'venda.nsu'
|
33
|
+
property :transaction_rejected_status, from: 'venda.lr'
|
34
|
+
property :transaction_rejected_message, from: 'venda.lrDescricao'
|
35
|
+
property :transaction_rejected_suggestion, from: 'venda.lrOrientacao'
|
36
|
+
|
37
|
+
property :credit_card_mask, from: 'venda.cartaoCredito.numeroMask'
|
38
|
+
property :credit_card_brand, from: 'venda.formaPagamento'
|
39
|
+
|
40
|
+
property :transaction_auth_code, from: 'venda.arp'
|
41
|
+
property :transaction_eci, from: 'venda.eci'
|
42
|
+
property :transaction_message, from: 'venda.msgErro'
|
43
|
+
property :transaction_gateway, from: 'venda.adquirente'
|
44
|
+
|
45
|
+
def success?
|
46
|
+
transaction_message.blank?
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
@@ -0,0 +1,11 @@
|
|
1
|
+
module GmxCheckout
|
2
|
+
module Models
|
3
|
+
class Transaction < Model
|
4
|
+
with = -> (hash) { hash&.fetch('value', nil) }
|
5
|
+
|
6
|
+
property :credit_card_mask, from: 'venda.cartaoCredito.numeroMask'
|
7
|
+
property :subscription_code, from: 'recorrencia.idRecorrencia', with: with
|
8
|
+
property :subscription_status, from: 'recorrencia.status', with: with
|
9
|
+
end
|
10
|
+
end
|
11
|
+
end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
module GmxCheckout
|
2
|
+
class Response
|
3
|
+
attr_reader :message, :errors, :body
|
4
|
+
|
5
|
+
def initialize(body, klass = nil)
|
6
|
+
@errors = body.dig('errors', '@items') || []
|
7
|
+
@message = body['msgRetorno'] || body['msgRetornoAdquirente']
|
8
|
+
@reason = body['status']
|
9
|
+
@body = klass.respond_to?(:new) ? klass.new(body) : body
|
10
|
+
end
|
11
|
+
|
12
|
+
def reason_phrase
|
13
|
+
@reason
|
14
|
+
end
|
15
|
+
|
16
|
+
def success?
|
17
|
+
errors.empty? && reason_phrase != 'fail'
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
@@ -0,0 +1,73 @@
|
|
1
|
+
module GmxCheckout
|
2
|
+
class Subscriptions < Base
|
3
|
+
def create(hash)
|
4
|
+
response = api.post '/txn/post', create_params(hash)
|
5
|
+
process_transaction response
|
6
|
+
end
|
7
|
+
|
8
|
+
def update(hash)
|
9
|
+
response = api.post '/txn/post', update_params(hash)
|
10
|
+
process_transaction response
|
11
|
+
end
|
12
|
+
|
13
|
+
def cancel(code)
|
14
|
+
response = api.post '/txn/cancelaRecorrencia',
|
15
|
+
'hashEmpresa' => api.api_key,
|
16
|
+
'recorrencia.idRecorrencia' => code
|
17
|
+
|
18
|
+
process_body response
|
19
|
+
end
|
20
|
+
|
21
|
+
private
|
22
|
+
|
23
|
+
def update_params(hash)
|
24
|
+
prepare! \
|
25
|
+
'venda.recorrencia.idRecorrencia' => hash[:id],
|
26
|
+
'venda.consumidor.nome' => hash.dig(:customer, :name),
|
27
|
+
'venda.consumidor.cpf' => hash.dig(:customer, :cpf),
|
28
|
+
'venda.valor' => hash[:amount],
|
29
|
+
'venda.capturaAuto' => false,
|
30
|
+
|
31
|
+
'cartaoCredito.numero' => hash.dig(:credit_card, :number),
|
32
|
+
'cartaoCredito.codSeguranca' => hash.dig(:credit_card, :cvc),
|
33
|
+
'cartaoCredito.mesValidade' => hash.dig(:credit_card, :exp_month),
|
34
|
+
'cartaoCredito.anoValidade' => hash.dig(:credit_card, :exp_year),
|
35
|
+
'cartaoCredito.bandeira' => hash.dig(:credit_card, :brand)
|
36
|
+
end
|
37
|
+
|
38
|
+
def create_params(hash)
|
39
|
+
amounts = hash[:amounts].join('|') if hash[:amounts].is_a? Array
|
40
|
+
|
41
|
+
prepare! \
|
42
|
+
'recorrencia.modalidaderecorrencia' => 1,
|
43
|
+
'recorrencia.idrecorrenciaEmpresa' => hash[:id],
|
44
|
+
'recorrencia.urlCampainha' => hash[:notification_url],
|
45
|
+
'recorrencia.ipOrigem' => hash[:remote_ip],
|
46
|
+
'recorrencia.browser' => hash[:browser],
|
47
|
+
'recorrencia.produto' => hash[:description],
|
48
|
+
'recorrencia.descricaoFatura' => hash[:invoice_name],
|
49
|
+
'recorrencia.parcelas' => hash[:installments],
|
50
|
+
'recorrencia.valor' => hash[:amount],
|
51
|
+
'recorrencia.valorParcelas' => amounts,
|
52
|
+
|
53
|
+
'recorrencia.consumidor.nome' => hash.dig(:customer, :name),
|
54
|
+
'recorrencia.consumidor.email' => hash.dig(:customer, :email),
|
55
|
+
'recorrencia.consumidor.telefone1' => hash.dig(:customer, :phone),
|
56
|
+
'recorrencia.consumidor.cpf' => hash.dig(:customer, :cpf),
|
57
|
+
|
58
|
+
'recorrencia.consumidor.endereco' => hash.dig(:address, :street),
|
59
|
+
'recorrencia.consumidor.numero' => hash.dig(:address, :number),
|
60
|
+
'recorrencia.consumidor.bairro' => hash.dig(:address, :district),
|
61
|
+
'recorrencia.consumidor.cidade' => hash.dig(:address, :city),
|
62
|
+
'recorrencia.consumidor.cep' => hash.dig(:address, :postal_code),
|
63
|
+
'recorrencia.consumidor.pais' => hash.dig(:address, :country),
|
64
|
+
|
65
|
+
'cartaoCredito.portador' => hash.dig(:credit_card, :holder_name),
|
66
|
+
'cartaoCredito.numero' => hash.dig(:credit_card, :number),
|
67
|
+
'cartaoCredito.codSeguranca' => hash.dig(:credit_card, :cvc),
|
68
|
+
'cartaoCredito.mesValidade' => hash.dig(:credit_card, :exp_month),
|
69
|
+
'cartaoCredito.anoValidade' => hash.dig(:credit_card, :exp_year),
|
70
|
+
'cartaoCredito.bandeira' => hash.dig(:credit_card, :brand)
|
71
|
+
end
|
72
|
+
end
|
73
|
+
end
|
data/lib/gmxcheckout.rb
ADDED
@@ -0,0 +1,38 @@
|
|
1
|
+
require 'hashie'
|
2
|
+
require 'faraday'
|
3
|
+
|
4
|
+
require 'gmxcheckout/version'
|
5
|
+
|
6
|
+
module GmxCheckout
|
7
|
+
autoload :API, 'gmxcheckout/api'
|
8
|
+
autoload :Base, 'gmxcheckout/base'
|
9
|
+
autoload :JsonMiddleware, 'gmxcheckout/json_middleware'
|
10
|
+
autoload :Model, 'gmxcheckout/model'
|
11
|
+
autoload :Response, 'gmxcheckout/response'
|
12
|
+
autoload :Subscriptions, 'gmxcheckout/subscriptions'
|
13
|
+
|
14
|
+
module Models
|
15
|
+
autoload :Transaction, 'gmxcheckout/models/transaction'
|
16
|
+
autoload :Notification, 'gmxcheckout/models/notification'
|
17
|
+
end
|
18
|
+
|
19
|
+
class << self
|
20
|
+
attr_accessor :api_key
|
21
|
+
end
|
22
|
+
|
23
|
+
def self.configure(&block)
|
24
|
+
instance_eval(&block)
|
25
|
+
end
|
26
|
+
|
27
|
+
def self.statuses
|
28
|
+
@statuses ||= {
|
29
|
+
initiated: 0,
|
30
|
+
captured: 1,
|
31
|
+
cancelled: 3,
|
32
|
+
suspended: 4,
|
33
|
+
approved: 5,
|
34
|
+
rejected: 6,
|
35
|
+
incommunicable: 7
|
36
|
+
}
|
37
|
+
end
|
38
|
+
end
|
metadata
ADDED
@@ -0,0 +1,161 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: gmxcheckout
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Rainer Borene
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2017-12-15 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: hashie
|
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: multi_json
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
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.15'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '1.15'
|
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: '5.0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '5.0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: vcr
|
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: A simple and easy to use library to integrate with gmxCheckout
|
112
|
+
email:
|
113
|
+
- rainerborene@gmail.com
|
114
|
+
executables: []
|
115
|
+
extensions: []
|
116
|
+
extra_rdoc_files: []
|
117
|
+
files:
|
118
|
+
- ".gitignore"
|
119
|
+
- ".travis.yml"
|
120
|
+
- Gemfile
|
121
|
+
- LICENSE.txt
|
122
|
+
- README.md
|
123
|
+
- Rakefile
|
124
|
+
- bin/console
|
125
|
+
- bin/setup
|
126
|
+
- gmxcheckout.gemspec
|
127
|
+
- lib/gmxcheckout.rb
|
128
|
+
- lib/gmxcheckout/api.rb
|
129
|
+
- lib/gmxcheckout/base.rb
|
130
|
+
- lib/gmxcheckout/json_middleware.rb
|
131
|
+
- lib/gmxcheckout/model.rb
|
132
|
+
- lib/gmxcheckout/models/notification.rb
|
133
|
+
- lib/gmxcheckout/models/transaction.rb
|
134
|
+
- lib/gmxcheckout/response.rb
|
135
|
+
- lib/gmxcheckout/subscriptions.rb
|
136
|
+
- lib/gmxcheckout/version.rb
|
137
|
+
homepage: https://github.com/rainerborene/gmxcheckoR
|
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.6.11
|
158
|
+
signing_key:
|
159
|
+
specification_version: 4
|
160
|
+
summary: Charge your customers in a monthly basis using gmxCheckout
|
161
|
+
test_files: []
|