catarse_pagarme 0.1.6 → 0.1.7
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: 3e526de65ec64d72a8b7c37fff6662200ee9bfd9
|
4
|
+
data.tar.gz: 7f7bbd778c0db52008a8b209996ee75736fc83e6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7dac957d38d28ee42ecd1f737b61ca8c99313caca7e8a59fc6eea89a70d0ecea6c28231031ece7d8fa46da9c383b2fc3597da2cc4d786eceea917e61225f0a63
|
7
|
+
data.tar.gz: f679ddf8c4013f4d959d0bbc16efc1c3b3eeaae82ddc6b61af7a7310a1b08e31e6ff8f59c2238093858b04c4bfb32677d37a12420814ec568f21b467dcabd612
|
@@ -36,7 +36,9 @@ 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,
|
40
|
+
subdomain: CatarsePagarme.configuration.subdomain,
|
41
|
+
protocol: CatarsePagarme.configuration.protocol),
|
40
42
|
installments: get_installment,
|
41
43
|
customer: {
|
42
44
|
email: contribution.user.email,
|
@@ -21,7 +21,9 @@ module CatarsePagarme
|
|
21
21
|
payment_method: 'boleto',
|
22
22
|
boleto_expiration_date: 2.days.from_now.to_i,
|
23
23
|
amount: delegator.value_for_transaction,
|
24
|
-
postback_url: ipn_pagarme_url(contribution, host: CatarsePagarme.configuration.host,
|
24
|
+
postback_url: ipn_pagarme_url(contribution, host: CatarsePagarme.configuration.host,
|
25
|
+
subdomain: CatarsePagarme.configuration.subdomain,
|
26
|
+
protocol: CatarsePagarme.configuration.protocol),
|
25
27
|
customer: {
|
26
28
|
email: contribution.user.email,
|
27
29
|
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, :subdomain,
|
3
|
+
attr_accessor :api_key, :slip_tax, :credit_card_tax, :interest_rate, :host, :subdomain, :protocol,
|
4
4
|
:max_installments, :minimum_value_for_installment, :credit_card_cents_fee
|
5
5
|
|
6
6
|
def initialize
|
@@ -13,6 +13,7 @@ module CatarsePagarme
|
|
13
13
|
self.credit_card_cents_fee = 0.39
|
14
14
|
self.host = 'catarse.me'
|
15
15
|
self.subdomain = 'www'
|
16
|
+
self.protocol = 'http'
|
16
17
|
end
|
17
18
|
end
|
18
19
|
end
|