catarse_pagarme 0.1.3 → 0.1.4
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: 0467cd3dc80c197e9a4329dce809fefb008bf004
|
4
|
+
data.tar.gz: e7c257a886d2b1e73c86f95cc579dbc97a11664b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|