catarse_pagarme 2.10.11 → 2.10.12

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: 93ecb712fd930c5f0d95a3981bd67584c49672b5
4
- data.tar.gz: 89243b8c644031b042393dc5d2f125984af2a9e7
3
+ metadata.gz: dc406c5e3ecbcd9d812d0d536397464a66259586
4
+ data.tar.gz: 565bb35ad034a72d07e670f19ede2f24f3d1bca0
5
5
  SHA512:
6
- metadata.gz: 48cd4baaccedf862af6475c10949944dfa8bb5ae23f3c9c274228df9c367307a8e1dfc8c1c58f193e0f486a9c48257cffad5fa57e450ef120e5f11e6fff1b0a6
7
- data.tar.gz: 837e89d2e62a6e15fc5057b3df909bfce40f40fe1d63c70e03ac652cbac685b55515a480d518b71514d032daaa784053a2697a86bf17ddabb1e8bbdf0d406954
6
+ metadata.gz: 89f1880af72ee31c985357760c0f8ba9845933f0cd7aad8e61b5b6956bcfd1ebf04d9765798f63dc794fb3c307731fc352563c089d3199c7b9844ade1616938d
7
+ data.tar.gz: 0b25ccefa1f6aa45fd2379ba4e40e372a307fb6365b204736dc521a216d7283593c7f16f60fc19a72bf7005706e879a5f483e9b12564b06b29d8fe90fc82c8a9
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- catarse_pagarme (2.10.11)
4
+ catarse_pagarme (2.10.12)
5
5
  pagarme (= 2.1.4)
6
6
  rails (~> 4.0)
7
7
  sentry-raven
@@ -25,8 +25,11 @@ module CatarsePagarme::FeeCalculatorConcern
25
25
  get_cielo_fee
26
26
  end
27
27
 
28
- international = self.payment.contribution.try(:international?)
29
- fee + (international ? 0 : antifraud_tax)
28
+ fee + payment_cost
29
+ end
30
+
31
+ def payment_cost
32
+ self.payment.gateway_data["cost"] / 100.0
30
33
  end
31
34
 
32
35
  def get_stone_fee
@@ -1,3 +1,3 @@
1
1
  module CatarsePagarme
2
- VERSION = "2.10.11"
2
+ VERSION = "2.10.12"
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: 2.10.11
4
+ version: 2.10.12
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-06-02 00:00:00.000000000 Z
12
+ date: 2017-06-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails