catarse_pagarme 0.1.3 → 0.1.4

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: 75d72c17cc073916630e9738692f44b4166382b4
4
- data.tar.gz: e40b70132f122c116a6fc3a96b2a26d79b0d8644
3
+ metadata.gz: 0467cd3dc80c197e9a4329dce809fefb008bf004
4
+ data.tar.gz: e7c257a886d2b1e73c86f95cc579dbc97a11664b
5
5
  SHA512:
6
- metadata.gz: 0dd3ac15fa345d17f6ebacddd8801e9eff5aaa73b9e490d8fa638f8da451136a4baa95a59eb1c240f9c97e354d0794da40237d1ec4a2bd319ce88ed5de319930
7
- data.tar.gz: 76f35723914783c3a86aa8783b018af3d9dc2080a89e09f302c6b7f1639a059fbf9db3e4196c40be02af7e06cb2139aeee4351975c4852ebab78ef2a645d3e8d
6
+ metadata.gz: 04a6369820cfb5c4a486965b50b50928abf6f78ac6d66ac7f593cf4909bf3ade48971afb953f2e2d7eecee4c00798f6e834e1d3c3a20ed213d0e7d3e5da2ff0b
7
+ data.tar.gz: 308f1cb073ffe8c1d549fae1bfc9d4ea4a5ec5299b3ae5a217ce5467a6dcce8177e0eacda601ff3c687716669e70306f4fa9e41375891007b3f4e044623896de
@@ -36,7 +36,7 @@ module CatarsePagarme
36
36
  card_expiration_year: splited_month_and_year[1],
37
37
  card_cvv: params[:payment_card_source],
38
38
  amount: delegator.value_with_installment_tax(get_installment),
39
- postback_url: ipn_pagarme_url(contribution),
39
+ postback_url: ipn_pagarme_url(contribution, host: CatarsePagarme.configuration.host),
40
40
  installments: get_installment,
41
41
  customer: {
42
42
  email: contribution.user.email,
@@ -20,7 +20,7 @@ module CatarsePagarme
20
20
  {
21
21
  payment_method: 'boleto',
22
22
  amount: delegator.value_for_transaction,
23
- postback_url: ipn_pagarme_url(contribution),
23
+ postback_url: ipn_pagarme_url(contribution, host: CatarsePagarme.configuration.host),
24
24
  customer: {
25
25
  email: contribution.user.email,
26
26
  name: contribution.user.name
@@ -1,6 +1,6 @@
1
1
  module CatarsePagarme
2
2
  class Configuration
3
- attr_accessor :api_key, :slip_tax, :credit_card_tax, :interest_rate,
3
+ attr_accessor :api_key, :slip_tax, :credit_card_tax, :interest_rate, :host,
4
4
  :max_installments, :minimum_value_for_installment, :credit_card_cents_fee
5
5
 
6
6
  def initialize
@@ -11,6 +11,7 @@ module CatarsePagarme
11
11
  self.max_installments = 12
12
12
  self.minimum_value_for_installment = 10
13
13
  self.credit_card_cents_fee = 0.39
14
+ self.host = 'catarse.me'
14
15
  end
15
16
  end
16
17
  end
@@ -1,3 +1,3 @@
1
1
  module CatarsePagarme
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
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.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Antônio Roberto Silva