catarse_pagarme 2.10.13 → 2.10.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/app/controllers/catarse_pagarme/slip_controller.rb +11 -1
- data/lib/catarse_pagarme/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7e470e7cc867aedcc2aaf3940b1fa5f23f0f1123
|
4
|
+
data.tar.gz: 5315c5f27cc3f856ddc3e3a9e77b28460ead587d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a4613aab2d3eab8be7d2975458bb0f8eb83798a75d86d5588c2b87b6e0d627e4d8100a9086fcb5cb47825fdb3ef9f1501d994ae6f76aacf92450f2ee89e2ebbf
|
7
|
+
data.tar.gz: e3543071634faf9c45722e3fa5f1a3ee744a353dd31b34c5accb8f4ec5881b8876684732182761de4afde472e71b48ecc4bc4043e318aa2abd05d6d4fdc9aa13
|
data/Gemfile.lock
CHANGED
@@ -39,10 +39,20 @@ module CatarsePagarme
|
|
39
39
|
protocol: CatarsePagarme.configuration.protocol),
|
40
40
|
customer: {
|
41
41
|
email: payment.user.email,
|
42
|
-
name: payment.user.name
|
42
|
+
name: payment.user.name,
|
43
|
+
document_number: document_number,
|
43
44
|
},
|
44
45
|
metadata: metadata_attributes
|
45
46
|
}
|
46
47
|
end
|
48
|
+
|
49
|
+
def document_number
|
50
|
+
international? ? '00000000000' : contribution.user.cpf.gsub(/[-.\/_\s]/,'')
|
51
|
+
end
|
52
|
+
|
53
|
+
def international?
|
54
|
+
contribution.international?
|
55
|
+
end
|
56
|
+
|
47
57
|
end
|
48
58
|
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.10.
|
4
|
+
version: 2.10.14
|
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: 2017-
|
12
|
+
date: 2017-09-12 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|