catarse_pagarme 0.1.5 → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3d4f2790b9638e05daf7748c53856ecaf6d462cb
4
- data.tar.gz: 4dc67400b9ee10ae7b3a686a15c4c3d8950a5d93
3
+ metadata.gz: 8c78a6135f39c19946c5d24f1f5bdd8d09def18a
4
+ data.tar.gz: e364b0adc9f89218fddb11d0dff07dc79e0b3500
5
5
  SHA512:
6
- metadata.gz: 7aa4058a11dd13061d1f4c2ed01aa4831e2c0ba9a41464ea1f32cf84e184a513c30aa14bfbaf9d2fc75c1f6ac4d364a887928ed6326f4106ff0647cabc6de5eb
7
- data.tar.gz: 364074502f8e2e5d2590bb29a24847d5610b1362531d839acc806c15a89aea56c9e712837b56687ed2990288e0451169b27ee98a5bc5bb6dbe2dc6a7a1b23895
6
+ metadata.gz: 8b2a73648a352206c5dcbcd556adf3001535f4cac34e015bf6dc93ca0c73a2df7f4135e6e4aa8c3511e4fdb4c3eb07c78d79ce2423954af3ee416be7916ce21a
7
+ data.tar.gz: fd175857d58f67c059cbe9dd53919471808cfc7280b33382a8cc45f0a7de9b700bded86f294f25fb7bcd9168f2ae1b59d1b75506c3ee080a398aa86dbd69b757
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- catarse_pagarme (0.1.1)
4
+ catarse_pagarme (0.1.5)
5
5
  pagarme (~> 1.9.5)
6
6
  rails (~> 4.0)
7
7
 
@@ -19,6 +19,7 @@ module CatarsePagarme
19
19
  def slip_attributes
20
20
  {
21
21
  payment_method: 'boleto',
22
+ boleto_expiration_date: 2.days.from_now.to_i,
22
23
  amount: delegator.value_for_transaction,
23
24
  postback_url: ipn_pagarme_url(contribution, host: CatarsePagarme.configuration.host, subdomain: CatarsePagarme.configuration.subdomain),
24
25
  customer: {
@@ -30,7 +31,7 @@ module CatarsePagarme
30
31
 
31
32
  def permitted_attributes
32
33
  attrs = ActionController::Parameters.new(slip_attributes)
33
- attrs.permit(:payment_method, :amount, :postback_url, customer: [:name, :email],
34
+ attrs.permit(:boleto_expiration_date, :payment_method, :amount, :postback_url, customer: [:name, :email],
34
35
  user: [
35
36
  bank_account_attributes: [
36
37
  :bank_id, :account, :account_digit, :agency,
@@ -1,3 +1,3 @@
1
1
  module CatarsePagarme
2
- VERSION = "0.1.5"
2
+ VERSION = "0.1.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: catarse_pagarme
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Antônio Roberto Silva
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-09-30 00:00:00.000000000 Z
12
+ date: 2014-10-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails