catarse_pagarme 2.14.13 → 2.14.14

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
  SHA256:
3
- metadata.gz: 49e29b96cb90884167e704aac825c48f4af388a557a2ff1f99f3075d600e2644
4
- data.tar.gz: 151e7effa7cf9dda5f58b64e3a597061857e3fce1e63baa5572be02b2bbe46d4
3
+ metadata.gz: 16f486ce4e0f5f5b564836a9b67e79b7a9b087ad0258503bdf75a131947e2a76
4
+ data.tar.gz: f4511696e43eceed7913675ef7c4f43f4159f616d17745ee9b47712b2c6ab256
5
5
  SHA512:
6
- metadata.gz: b1c50a2cdee1962128500137b884eaa6f107cbad2c1339a1974d2f81e04b398817939b567eb512560f029cf6878681a098f53c5a20e8fcf86ded5d695a915a0e
7
- data.tar.gz: 630d6a3d226133e85f19af98ae6243f604fb850f4144e01048440e7ebc2ba95fd0166341f1a2b3c999abe2aa6a15a47a9921bf0bd948d49cf3b5628be438fb53
6
+ metadata.gz: 4a7626b41c62a8427cf572a3a59bd2f13a6f2777c6fc4cf401e7c6fc022ad59737fa9d12ed0cd97276d6743e37ef2ae9eb3537bf558b350abc2abd41a63dedaf
7
+ data.tar.gz: 2bf89a458858a603bcbd3b5600e7bcb66f8ba1b0ff79cfcada3e427cfa9b81117e908f31adef0031b30b2f2c67cf366b8ad50d2b0b10e03677c6f3797c86aa9b
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- catarse_pagarme (2.14.13)
4
+ catarse_pagarme (2.14.14)
5
5
  countries (= 3.0.0)
6
6
  konduto-ruby (= 2.1.0)
7
7
  pagarme (= 2.1.4)
@@ -19,20 +19,24 @@ module CatarsePagarme
19
19
  payment_method: payment.payment_method
20
20
  }
21
21
  )
22
- ::Raven.capture_exception(exception)
22
+ ::Raven.capture_exception(exception, level: 'fatal')
23
23
  ::Raven.user_context({})
24
24
  end
25
25
 
26
26
  def metadata_attributes
27
27
  {
28
28
  key: payment.generate_key,
29
- contribution_id: payment.contribution.id,
29
+ contribution_id: payment.contribution.id.to_s,
30
+ project_id: payment.project.id.to_s,
30
31
  project_name: payment.project.name,
31
32
  permalink: payment.project.permalink,
32
33
  project_online: payment.project.online_at,
33
34
  project_expires: payment.project.expires_at,
34
35
  user_total_contributions: payment.user.contributions.was_confirmed.count,
35
- user_id: payment.user.id
36
+ user_id: payment.user.id,
37
+ common_user_id: payment.user.common_id.to_s,
38
+ user_name: payment.user.name,
39
+ user_email: payment.user.email
36
40
  }
37
41
  end
38
42
 
@@ -46,7 +46,7 @@ module CatarsePagarme
46
46
  number: document_number
47
47
  }],
48
48
  },
49
- metadata: metadata_attributes
49
+ metadata: metadata_attributes.merge({ second_slip: payment.generating_second_slip.to_s })
50
50
  }
51
51
  end
52
52
 
@@ -33,7 +33,8 @@ module CatarsePagarme
33
33
  async: false,
34
34
  postback_url: self.attributes[:postback_url],
35
35
  installments: self.attributes[:installments],
36
- soft_descriptor: self.attributes[:soft_descriptor]
36
+ soft_descriptor: self.attributes[:soft_descriptor],
37
+ metadata: self.attributes[:metadata]
37
38
  }.merge(credit_card_identifier)
38
39
  )
39
40
 
@@ -1,3 +1,3 @@
1
1
  module CatarsePagarme
2
- VERSION = "2.14.13"
2
+ VERSION = "2.14.14"
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: 2.14.13
4
+ version: 2.14.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Antônio Roberto Silva
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2020-04-13 00:00:00.000000000 Z
12
+ date: 2020-04-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: countries