catarse_pagarme 2.0.3 → 2.1.0
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 15918d28c417265f79c1ba2fae6cf2ca9b46b922
|
4
|
+
data.tar.gz: f48f6042076b45924c55a9ac598e478e86da759a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5873c6649050e6000b6a32b68dbc361f8eb86f566a500e339d28af7f4d1cbaaca09a7a1f7c28d0ab6d6b9c12314c72398c17a81f628f0ec4b5e47ee30d015c61
|
7
|
+
data.tar.gz: 9a1c244b67a441f3722ce3ea6acf42c51c4315eae002fb61db29b56b115059e9179084710e327537a60130cb617cb5072c25147fdade186f8b79049ed745ad27
|
@@ -26,7 +26,9 @@ module CatarsePagarme
|
|
26
26
|
payment_id: self.transaction.id,
|
27
27
|
payment_method: 'Pagarme',
|
28
28
|
slip_url: self.transaction.boleto_url,
|
29
|
-
installments: (self.transaction.installments || 1)
|
29
|
+
installments: (self.transaction.installments || 1),
|
30
|
+
acquirer_name: self.transaction.acquirer_name,
|
31
|
+
acquirer_tid: self.transaction.tid
|
30
32
|
}
|
31
33
|
end
|
32
34
|
|
@@ -11,6 +11,7 @@ describe CatarsePagarme::CreditCardTransaction do
|
|
11
11
|
transaction.stub(:boleto_url).and_return(nil)
|
12
12
|
transaction.stub(:installments).and_return(3)
|
13
13
|
transaction.stub(:acquirer_name).and_return('stone')
|
14
|
+
transaction.stub(:tid).and_return('123123')
|
14
15
|
transaction
|
15
16
|
}
|
16
17
|
|
@@ -65,6 +66,14 @@ describe CatarsePagarme::CreditCardTransaction do
|
|
65
66
|
it "should update contribution payment_choice" do
|
66
67
|
expect(contribution.payment_choice).to eq(CatarsePagarme::PaymentType::CREDIT_CARD)
|
67
68
|
end
|
69
|
+
|
70
|
+
it "should update contribution acquirer_name" do
|
71
|
+
expect(contribution.acquirer_name).to eq('stone')
|
72
|
+
end
|
73
|
+
|
74
|
+
it "should update contribution acquirer_tid" do
|
75
|
+
expect(contribution.acquirer_tid).to eq('123123')
|
76
|
+
end
|
68
77
|
end
|
69
78
|
end
|
70
79
|
|
@@ -10,6 +10,7 @@ describe CatarsePagarme::SlipTransaction do
|
|
10
10
|
transaction.stub(:boleto_url).and_return('boleto url')
|
11
11
|
transaction.stub(:installments).and_return(nil)
|
12
12
|
transaction.stub(:acquirer_name).and_return('pagarme')
|
13
|
+
transaction.stub(:tid).and_return('123123')
|
13
14
|
transaction
|
14
15
|
}
|
15
16
|
let(:valid_attributes) do
|
@@ -97,6 +98,14 @@ describe CatarsePagarme::SlipTransaction do
|
|
97
98
|
it "should update contribution payment_choice" do
|
98
99
|
expect(contribution.payment_choice).to eq(CatarsePagarme::PaymentType::SLIP)
|
99
100
|
end
|
101
|
+
|
102
|
+
it "should update contribution acquirer_name" do
|
103
|
+
expect(contribution.acquirer_name).to eq('pagarme')
|
104
|
+
end
|
105
|
+
|
106
|
+
it "should update contribution acquirer_tid" do
|
107
|
+
expect(contribution.acquirer_tid).to eq('123123')
|
108
|
+
end
|
100
109
|
end
|
101
110
|
end
|
102
111
|
|
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.0
|
4
|
+
version: 2.1.0
|
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-10-
|
12
|
+
date: 2014-10-20 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|