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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3d4f2790b9638e05daf7748c53856ecaf6d462cb
|
4
|
+
data.tar.gz: 4dc67400b9ee10ae7b3a686a15c4c3d8950a5d93
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|