catarse_pagarme 2.8.1 → 2.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3ea56f054c73ddb41da668e6a32b1f99ca71a613
|
|
4
|
+
data.tar.gz: ec3d39157a2986d30b6de4c5843d5f22e2e845d2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c6f8cc928613aef53a6f0cfd12ac802a3692ee6232d46444e56ca85a5da48ff7ee1ddd52b5e5b7cd757f951fdc41e99525f6748d5b7f8702682ebd42155d5d98
|
|
7
|
+
data.tar.gz: 06d3b8a15cc18019b352a0256339ea48de26e369b1d0cd7d8af55cf97d26faa02e866b5e5cf78ba33f16dca84eb3d41041bd08e1dc4c88095ba3724c54a2c8d4
|
data/Gemfile.lock
CHANGED
|
@@ -24,10 +24,9 @@ module CatarsePagarme
|
|
|
24
24
|
protected
|
|
25
25
|
|
|
26
26
|
def slip_attributes
|
|
27
|
-
expiration_date = (CatarsePagarme.configuration.slip_week_day_interval || 2).weekdays_from_now
|
|
28
27
|
{
|
|
29
28
|
payment_method: 'boleto',
|
|
30
|
-
boleto_expiration_date:
|
|
29
|
+
boleto_expiration_date: payment.slip_expiration_date,
|
|
31
30
|
amount: delegator.value_for_transaction,
|
|
32
31
|
postback_url: ipn_pagarme_index_url(host: CatarsePagarme.configuration.host,
|
|
33
32
|
subdomain: CatarsePagarme.configuration.subdomain,
|
|
@@ -13,6 +13,10 @@ class Payment < ActiveRecord::Base
|
|
|
13
13
|
self.state = 'pending' # mock initial state for here we do not include the stat machine
|
|
14
14
|
end
|
|
15
15
|
|
|
16
|
+
def slip_expiration_date
|
|
17
|
+
2.weekdays_from_now
|
|
18
|
+
end
|
|
19
|
+
|
|
16
20
|
def generate_key
|
|
17
21
|
self.key ||= SecureRandom.uuid
|
|
18
22
|
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: 2.8.
|
|
4
|
+
version: 2.8.2
|
|
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: 2015-11-
|
|
12
|
+
date: 2015-11-25 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: rails
|