catarse_pagarme 0.1.4 → 0.1.5

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: 0467cd3dc80c197e9a4329dce809fefb008bf004
4
- data.tar.gz: e7c257a886d2b1e73c86f95cc579dbc97a11664b
3
+ metadata.gz: 3d4f2790b9638e05daf7748c53856ecaf6d462cb
4
+ data.tar.gz: 4dc67400b9ee10ae7b3a686a15c4c3d8950a5d93
5
5
  SHA512:
6
- metadata.gz: 04a6369820cfb5c4a486965b50b50928abf6f78ac6d66ac7f593cf4909bf3ade48971afb953f2e2d7eecee4c00798f6e834e1d3c3a20ed213d0e7d3e5da2ff0b
7
- data.tar.gz: 308f1cb073ffe8c1d549fae1bfc9d4ea4a5ec5299b3ae5a217ce5467a6dcce8177e0eacda601ff3c687716669e70306f4fa9e41375891007b3f4e044623896de
6
+ metadata.gz: 7aa4058a11dd13061d1f4c2ed01aa4831e2c0ba9a41464ea1f32cf84e184a513c30aa14bfbaf9d2fc75c1f6ac4d364a887928ed6326f4106ff0647cabc6de5eb
7
+ data.tar.gz: 364074502f8e2e5d2590bb29a24847d5610b1362531d839acc806c15a89aea56c9e712837b56687ed2990288e0451169b27ee98a5bc5bb6dbe2dc6a7a1b23895
@@ -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, host: CatarsePagarme.configuration.host),
39
+ postback_url: ipn_pagarme_url(contribution, host: CatarsePagarme.configuration.host, subdomain: CatarsePagarme.configuration.subdomain),
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, host: CatarsePagarme.configuration.host),
23
+ postback_url: ipn_pagarme_url(contribution, host: CatarsePagarme.configuration.host, subdomain: CatarsePagarme.configuration.subdomain),
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, :host,
3
+ attr_accessor :api_key, :slip_tax, :credit_card_tax, :interest_rate, :host, :subdomain,
4
4
  :max_installments, :minimum_value_for_installment, :credit_card_cents_fee
5
5
 
6
6
  def initialize
@@ -12,6 +12,7 @@ module CatarsePagarme
12
12
  self.minimum_value_for_installment = 10
13
13
  self.credit_card_cents_fee = 0.39
14
14
  self.host = 'catarse.me'
15
+ self.subdomain = 'www'
15
16
  end
16
17
  end
17
18
  end
@@ -1,3 +1,3 @@
1
1
  module CatarsePagarme
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.5"
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.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Antônio Roberto Silva